projects
/
platform
/
upstream
/
coreutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(LONG_MAX): Define if not defined.
[platform/upstream/coreutils.git]
/
src
/
od.c
diff --git
a/src/od.c
b/src/od.c
index
c7d5d4c
..
bf7de17
100644
(file)
--- a/
src/od.c
+++ b/
src/od.c
@@
-55,6
+55,9
@@
typedef double LONG_DOUBLE;
#ifndef ULONG_MAX
# define ULONG_MAX ((unsigned long) ~(unsigned long) 0)
#endif
+#ifndef LONG_MAX
+# define LONG_MAX ((long int) (ULONG_MAX >> 1))
+#endif
#if HAVE_VALUES_H
# include <values.h>