summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-28 18:16:54 +0100
committerJim Meyering <meyering@redhat.com>2007-10-28 18:16:54 +0100
commit39e668ce5b06b0747e5039a59bcfe1174c6fe366 (patch)
tree44c45cf5e7026b596048371d6694589aa814652f
parent68c33a103d3f493171b1d9e1094726a4d65e31c9 (diff)
downloadcoreutils-39e668ce5b06b0747e5039a59bcfe1174c6fe366.tar.xz
Define ENODATA, for FreeBSD 5.0 and 6.1.
* src/system.h (ENODATA): Define, if missing.
-rw-r--r--ChangeLog3
-rw-r--r--src/system.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3cbacf048..becbb6f3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-10-28 Jim Meyering <meyering@redhat.com>
+ Define ENODATA, for FreeBSD 5.0 and 6.1.
+ * src/system.h (ENODATA): Define, if missing.
+
Run autoreconf, not just autoconf, to avoid warnings.
* GNUmakefile (dummy): Otherwise, we'd sometimes get a warning
about autoconf version mismatch between what was used to generate
diff --git a/src/system.h b/src/system.h
index 88765e0f1..0cd0804ce 100644
--- a/src/system.h
+++ b/src/system.h
@@ -109,6 +109,9 @@ you must include <sys/types.h> before including this file
#ifndef ENOSYS
# define ENOSYS (-1)
#endif
+#ifndef ENODATA
+# define ENODATA (-1)
+#endif
#include <stdbool.h>
#include <stdlib.h>