From dc919c25343211b25ed8c55577bc5451791cbde4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 28 May 2007 21:04:59 +0000 Subject: r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl (This used to be commit 222acbe33b427a6ccae3b9e27b545f22e4564d5c) --- source4/lib/replace/replace.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index 5918f98bc4..a43f436083 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -258,6 +258,14 @@ int rep_socketpair(int d, int type, int protocol, int sv[2]); #endif #endif +#ifndef _DEPRECATED_ +#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) +#define _DEPRECATED_ __attribute__ ((deprecated)) +#else +#define _DEPRECATED_ +#endif +#endif + #ifndef HAVE_VASPRINTF #define vasprintf rep_vasprintf int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0); -- cgit