]> Savannah Git Hosting - gnulib.git/commitdiff
pipe2: decouple from binary-io a bit
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jul 2013 08:35:26 +0000 (01:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 6 Jul 2013 08:35:44 +0000 (01:35 -0700)
This is for Emacs, which needs pipe2 but not binary-io.
* lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
* modules/binary-io (Depends-on): Add module indicator.

ChangeLog
lib/pipe2.c
modules/binary-io

index 692fbc33439be17a55c98f8ed14320bd97de400c..f714711ab571405110ff9a96bddc95b6fc2ef0b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       pipe2: decouple from binary-io a bit
+       This is for Emacs, which needs pipe2 but not binary-io.
+       * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
+       * modules/binary-io (Depends-on): Add module indicator.
+
 2013-07-03  Eric Blake  <eblake@redhat.com>
 
        mgetgroups: relax license to LGPLv2+
index 3ab194e5fab1a26918f04e3b47d194ab28c83602..956907322f6e309cd2518cfcd31634c65e5b5f36 100644 (file)
 #include <errno.h>
 #include <fcntl.h>
 
-#include "binary-io.h"
+#if GNULIB_BINARY_IO
+# include "binary-io.h"
+#endif
+
 #include "verify.h"
 
 #if GNULIB_defined_O_NONBLOCK
index 4860252453a95d71d7e02bcc4babce0258c0ea25..1f646dc4de4c7c2a6fa956cf15db51a8147d2872 100644 (file)
@@ -10,6 +10,7 @@ extern-inline
 fcntl-h
 
 configure.ac:
+gl_MODULE_INDICATOR([binary-io])
 
 Makefile.am:
 lib_SOURCES += binary-io.h binary-io.c