Skip to content

Navigation Menu

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

Commit a30c0a5

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

File tree

5 files changed

+5
-0
lines changed
Filter options

5 files changed

+5
-0
lines changed

‎tests/cmocka/Makefile

Copy file name to clipboardExpand all lines: tests/cmocka/Makefile
+1Lines 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

Copy file name to clipboardExpand all lines: tests/cmocka/missing_basic.c
+1Lines 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

Copy file name to clipboardExpand all lines: tests/cmocka/missing_bitmapset.c
+1Lines 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

Copy file name to clipboardExpand all lines: tests/cmocka/missing_list.c
+1Lines 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

Copy file name to clipboardExpand all lines: tests/cmocka/missing_stringinfo.c
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.