Skip to content

Commit

Permalink
Add define for GNU glibc extensions
Browse files Browse the repository at this point in the history
`fdopen`, `strdup`, and `mkstemp` are all extensions. `_DEFAULT_SOURCE`
should be enough for this, but apparently not on older glibcs.
  • Loading branch information
bnbarham committed Jan 26, 2024
1 parent 6a97b58 commit 8b0e2f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api_test/harness.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#define _POSIX_SOURCE
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 8b0e2f6

Please sign in to comment.