From 686221eae28ff58fb048fdc7132e1413dedb6eb9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 29 Mar 2010 20:53:16 +1100 Subject: s4-waf: use the libreplace strerror_r if needed --- source4/heimdal_build/internal.mk | 1 - source4/heimdal_build/roken.h | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'source4/heimdal_build') diff --git a/source4/heimdal_build/internal.mk b/source4/heimdal_build/internal.mk index 6c6bfcec65..8b834ab525 100644 --- a/source4/heimdal_build/internal.mk +++ b/source4/heimdal_build/internal.mk @@ -640,7 +640,6 @@ HEIMDAL_ROKEN_OBJ_FILES = \ $(heimdalsrcdir)/lib/roken/erealloc.o \ $(heimdalsrcdir)/lib/roken/simple_exec.o \ $(heimdalsrcdir)/lib/roken/strcollect.o \ - $(heimdalsrcdir)/lib/roken/strerror_r.o \ $(heimdalsrcdir)/lib/roken/rtbl.o \ $(heimdalsrcdir)/lib/roken/cloexec.o \ $(heimdalsrcdir)/lib/roken/xfree.o \ diff --git a/source4/heimdal_build/roken.h b/source4/heimdal_build/roken.h index c95e6dfaef..172dc76a29 100644 --- a/source4/heimdal_build/roken.h +++ b/source4/heimdal_build/roken.h @@ -111,6 +111,15 @@ #define HAVE_GETTIMEOFDAY #endif +/* force the use of the libreplace strerror_r */ +#ifndef HAVE_STRERROR_R +#define HAVE_STRERROR_R +#endif +#ifndef STRERROR_R_PROTO_COMPATIBLE +#define STRERROR_R_PROTO_COMPATIBLE +#endif + + /* we lie about having pidfile() so that NetBSD5 can compile. Nothing in the parts of heimdal we use actually uses pidfile(), and we don't use it in Samba, so this works, although its ugly */ -- cgit