Skip to content

Commit

Permalink
Define _DEFAULT_SOURCE to get various posix/gnu glibc functions decla…
Browse files Browse the repository at this point in the history
…red (#137)

fdopen, strdup and others are not declared by glibc header files
unless _DEFAULT_SOURCE is defined.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard authored and Ashe Connor committed Mar 12, 2019
1 parent 9f7ca02 commit 2a9996f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api_test/harness.c
@@ -1,3 +1,4 @@
#define _DEFAULT_SOURCE
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 2a9996f

Please sign in to comment.