coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: do not remove definition of ENODATA, after all


From: Jim Meyering
Subject: [PATCH] build: do not remove definition of ENODATA, after all
Date: Tue, 25 Oct 2011 13:38:42 +0200

FYI,

>From 22f3b2e9602f138b6bf4a45d50fa777c9fe782c5 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 25 Oct 2011 12:31:44 +0200
Subject: [PATCH] build: do not remove definition of ENODATA, after all

* src/system.h (ENODATA): Restore definition.
gnulib defines it only on native Windows systems, so removing our
definition would have provoked build failure on systems that use it,
like FreeBSD.  Reported by Bruno Haible in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
* gnulib: Update to latest, to get new ENODATA-exempting maint.mk rule.
---
 gnulib       |    2 +-
 src/system.h |    8 ++++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/gnulib b/gnulib
index 71f1342..f1a5c91 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 71f13422f3e6345933513607255f1f7a7526e937
+Subproject commit f1a5c91522554791317dc2ee763fe8c017c7b810
diff --git a/src/system.h b/src/system.h
index 19421a9..926def9 100644
--- a/src/system.h
+++ b/src/system.h
@@ -76,6 +76,14 @@ you must include <sys/types.h> before including this file

 #include <string.h>
 #include <errno.h>
+
+/* Some systems don't define this; POSIX mentions it but says it is
+   obsolete.  gnulib defines it, but only on native Windows systems,
+   and there only because MSVC 10 does.  */
+#ifndef ENODATA
+# define ENODATA (-1)
+#endif
+
 #include <stdbool.h>
 #include <stdlib.h>
 #include "version.h"
--
1.7.7.419.g87009



reply via email to

[Prev in Thread] Current Thread [Next in Thread]