From: Paul Eggert Date: Sat, 6 Jul 2013 08:35:26 +0000 (-0700) Subject: pipe2: decouple from binary-io a bit X-Git-Tag: v0.1~97 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ab63a3d7bdc3c2364dcd1e89b6ac9f7609688092;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 692fbc334..f714711ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-07-06 Paul Eggert + + 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 mgetgroups: relax license to LGPLv2+ diff --git a/lib/pipe2.c b/lib/pipe2.c index 3ab194e5f..956907322 100644 --- a/lib/pipe2.c +++ b/lib/pipe2.c @@ -22,7 +22,10 @@ #include #include -#include "binary-io.h" +#if GNULIB_BINARY_IO +# include "binary-io.h" +#endif + #include "verify.h" #if GNULIB_defined_O_NONBLOCK diff --git a/modules/binary-io b/modules/binary-io index 486025245..1f646dc4d 100644 --- a/modules/binary-io +++ b/modules/binary-io @@ -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