diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-09-26 03:11:34 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-09-26 03:11:34 +0000 |
commit | 5abc10e1622bcb2a51558fc3845561b89f772333 (patch) | |
tree | 726201117927a4fae04c3bb48a7ca0d752f5918d /tcl_class.c | |
parent | 1dcee6d13b69278da5abb7d56425672b9cfe6c26 (diff) |
fix "implicit declaration of function ‘strdup’" which causes problems on amd64 and ia64, and breaks in Debian packages
svn path=/trunk/externals/loaders/tclpd/; revision=16295
Diffstat (limited to 'tcl_class.c')
-rw-r--r-- | tcl_class.c | 4 |
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> |