Skip to content

Commit 2a9996f

Browse files
keith-packardAshe Connor
authored andcommitted
Define _DEFAULT_SOURCE to get various posix/gnu glibc functions declared (commonmark#137)
fdopen, strdup and others are not declared by glibc header files unless _DEFAULT_SOURCE is defined. Signed-off-by: Keith Packard <[email protected]>
1 parent 9f7ca02 commit 2a9996f

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,3 +1,4 @@
1+
#define _DEFAULT_SOURCE
12
#include <stdarg.h>
23
#include <stdio.h>
34
#include <stdlib.h>

0 commit comments

Comments
 (0)