From 5abc10e1622bcb2a51558fc3845561b89f772333 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 26 Sep 2012 03:11:34 +0000 Subject: =?UTF-8?q?fix=20"implicit=20declaration=20of=20function=20?= =?UTF-8?q?=E2=80=98strdup=E2=80=99"=20which=20causes=20problems=20on=20am?= =?UTF-8?q?d64=20and=20ia64,=20and=20breaks=20in=20Debian=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/externals/loaders/tclpd/; revision=16295 --- hashtable.h | 3 +++ tcl_class.c | 4 ++++ 2 files changed, 7 insertions(+) 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 #include #include 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 #include -- cgit v1.2.1