diff options
-rw-r--r-- | hashtable.h | 3 | ||||
-rw-r--r-- | tcl_class.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/hashtable.h b/hashtable.h index a45de35..06c1d3a 100644 --- a/hashtable.h +++ b/hashtable.h @@ -1,6 +1,9 @@ #ifndef HASHTABLE_H_INCLUDED
#define HASHTABLE_H_INCLUDED
+/* in order to get strdup(), this needs to be defined */
+#define _POSIX_C_SOURCE 200809L
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tcl_class.c b/tcl_class.c index 085334a..412a1bb 100644 --- a/tcl_class.c +++ b/tcl_class.c @@ -1,3 +1,7 @@ + +/* in order to get strdup(), this needs to be defined */ +#define _POSIX_C_SOURCE 200809L + #include "tclpd.h" #include <stdlib.h> #include <stdio.h> |