The compatibility function was never built since we were forcing HAVE_PIPE in compat.h
@@ -88,7 +88,7 @@ libdsm_la_SOURCES = \
src/smb_utils.c
noinst_LTLIBRARIES = libcompat.la
-libcompat_la_SOURCES = compat/compat.c
+libcompat_la_SOURCES =
libcompat_la_LIBADD = $(LTLIBOBJS)
pkgconfigdir = $(libdir)/pkgconfig
@@ -1,11 +0,0 @@
-#include "config.h"
-
-#if !defined(HAVE_PIPE) && defined(HAVE__PIPE)
-#include <fcntl.h>
-int pipe(int fds[2])
-{
- return _pipe(fds, 32768, O_NOINHERIT | O_BINARY);
-}
-#endif
@@ -66,8 +66,12 @@ char *strndup(const char *str, size_t n);
#endif
#if !defined(HAVE_PIPE) && defined(HAVE__PIPE)
+#include <fcntl.h>
#define HAVE_PIPE
-int pipe(int fds[2]);
+static inline int pipe(int fds[2])
+{
+ return _pipe(fds, 32768, O_NOINHERIT | O_BINARY);
+}
#ifndef _WIN32