summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-11-12 23:58:32 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-11-12 23:58:32 +0100
commit4dbf7c113182be27e4bdcacf67847118966298b4 (patch)
tree452e017719f8503bc564ac404185c4f2e4525874
parent603ba1225fdd44a2571a1130e610c3063633c360 (diff)
downloadpjctl-4dbf7c113182be27e4bdcacf67847118966298b4.tar.gz
pjctl-4dbf7c113182be27e4bdcacf67847118966298b4.tar.bz2
pjctl-4dbf7c113182be27e4bdcacf67847118966298b4.zip
Explicitly define _BSD_SOURCE for asprintf on (open)bsd
asprintf isnt declared since we define also _POSIX_C_SOURCE, so an explicit _BSD_SOURCE to get non posix/ansi prototypes.
-rw-r--r--src/pjctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pjctl.c b/src/pjctl.c
index 94e9ab5..69be760 100644
--- a/src/pjctl.c
+++ b/src/pjctl.c
@@ -18,6 +18,7 @@
*/
#define _POSIX_C_SOURCE 200112L
+#define _BSD_SOURCE
#define _GNU_SOURCE
#include <stdio.h>