8000 Not sure why I do that, but fix cmocka tests. · postgrespro/pg_pathman@a30c0a5 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
< 8000 div style="--spacing:var(--spacing-none)" class="Box-sc-g0xbh4-0 prc-PageLayout-PageLayoutRoot-1zlEO">

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 8E70 _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)
0