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

Diff for: tests/cmocka/Makefile

+1
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

Diff for: tests/cmocka/missing_basic.c

+1
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 *

Diff for: tests/cmocka/missing_bitmapset.c

+1
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

Diff for: tests/cmocka/missing_list.c

+1
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

Diff for: tests/cmocka/missing_stringinfo.c

+1
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)