Skip to content

Commit a30c0a5

Browse files
committed
Not sure why I do that, but fix cmocka tests.
1 parent 7954c34 commit a30c0a5

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

tests/cmocka/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CFLAGS += $(shell $(PG_CONFIG) --cflags_sl)
88
CFLAGS += $(shell $(PG_CONFIG) --cflags)
99
CFLAGS += $(CFLAGS_SL)
1010
CFLAGS += $(PG_CPPFLAGS)
11+
CFLAGS += -D_GNU_SOURCE
1112
LDFLAGS += -lcmocka
1213
TEST_BIN = rangeset_tests
1314

tests/cmocka/missing_basic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdio.h>
22

33
#include "postgres.h"
4+
#include "undef_printf.h"
45

56

67
void *

tests/cmocka/missing_bitmapset.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "postgres.h"
2+
#include "undef_printf.h"
23
#include "nodes/bitmapset.h"
34

45

tests/cmocka/missing_list.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
16+
#define _GNU_SOURCE
1617
#include "postgres.h"
1718
#include "nodes/pg_list.h"
1819

tests/cmocka/missing_stringinfo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*-------------------------------------------------------------------------
1515
*/
1616
#include "postgres.h"
17+
#include "undef_printf.h"
1718

1819
#include "lib/stringinfo.h"
1920
#include "utils/memutils.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy