[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] pipe2: decouple from binary-io a bit
From: |
Paul Eggert |
Subject: |
[PATCH] pipe2: decouple from binary-io a bit |
Date: |
Sat, 06 Jul 2013 01:36:49 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
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 | 7 +++++++
lib/pipe2.c | 5 ++++-
modules/binary-io | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 692fbc3..f714711 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-07-06 Paul Eggert <address@hidden>
+
+ 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 <address@hidden>
mgetgroups: relax license to LGPLv2+
diff --git a/lib/pipe2.c b/lib/pipe2.c
index 3ab194e..9569073 100644
--- a/lib/pipe2.c
+++ b/lib/pipe2.c
@@ -22,7 +22,10 @@
#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
diff --git a/modules/binary-io b/modules/binary-io
index 4860252..1f646dc 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
--
1.7.11.7
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] pipe2: decouple from binary-io a bit,
Paul Eggert <=