aboutsummaryrefslogtreecommitdiff
path: root/tcl_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcl_class.c')
-rw-r--r--tcl_class.c4
1 files changed, 4 insertions, 0 deletions
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>