Skip to content

Commit fcfcd1e

Browse files
committed
Add define for GNU glibc extensions
`fdopen`, `strdup`, and `mkstemp` are all extensions. `_DEFAULT_SOURCE` should be enough for this, but apparently not on older glibcs.
1 parent 6a97b58 commit fcfcd1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api_test/harness.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define _DEFAULT_SOURCE
2+
#define _BSD_SOURCE
23
#include <stdarg.h>
34
#include <stdio.h>
45
#include <stdlib.h>

0 commit comments

Comments
 (0)