summaryrefslogtreecommitdiff
path: root/src
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 /src
parent68c33a103d3f493171b1d9e1094726a4d65e31c9 (diff)
downloadcoreutils-39e668ce5b06b0747e5039a59bcfe1174c6fe366.tar.xz
Define ENODATA, for FreeBSD 5.0 and 6.1.
* src/system.h (ENODATA): Define, if missing.
Diffstat (limited to 'src')
-rw-r--r--src/system.h3
1 files changed, 3 insertions, 0 deletions
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>