diff options
author | Jim Meyering <meyering@redhat.com> | 2007-10-28 18:16:54 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-10-28 18:16:54 +0100 |
commit | 39e668ce5b06b0747e5039a59bcfe1174c6fe366 (patch) | |
tree | 44c45cf5e7026b596048371d6694589aa814652f | |
parent | 68c33a103d3f493171b1d9e1094726a4d65e31c9 (diff) | |
download | coreutils-39e668ce5b06b0747e5039a59bcfe1174c6fe366.tar.xz |
Define ENODATA, for FreeBSD 5.0 and 6.1.
* src/system.h (ENODATA): Define, if missing.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/system.h | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -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> |