summaryrefslogtreecommitdiff
path: root/binutils/sysdep.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2009-02-03 15:48:50 +0000
committerH.J. Lu <hjl@lucon.org>2009-02-03 15:48:50 +0000
commite1d3d9ee0fa11694cd104c6f0be5088ce61f6901 (patch)
treeaed3023a163ff89c34541bc8d71a1923851f317c /binutils/sysdep.h
parente6ff3969bc55d60bce5104e15da13c8a7e110237 (diff)
downloadbinutils-redhat-e1d3d9ee0fa11694cd104c6f0be5088ce61f6901.tar.gz
2009-02-03 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/9784 * NEWS: Mention --prefix=PREFIX and --prefix-strip=LEVEL. * doc/binutils.texi: Document --prefix=PREFIX and --prefix-strip=LEVEL. * objdump.c: Include "filenames.h". (prefix): New. (prefix_strip): Likewise. (prefix_length): Likewise. (usage): Add --prefix=PREFIX and --prefix-strip=LEVEL. (option_values): Add OPTION_PREFIX and OPTION_PREFIX_STRIP. (long_options): Likewise. (show_line): Handle prefix and prefix_strip. (main): Handle OPTION_PREFIX and OPTION_PREFIX_STRIP. * readelf.c (PATH_MAX): Moved to ... * sysdep.h: Here.
Diffstat (limited to 'binutils/sysdep.h')
-rw-r--r--binutils/sysdep.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/binutils/sysdep.h b/binutils/sysdep.h
index 18518dccdc..e3d60d92f3 100644
--- a/binutils/sysdep.h
+++ b/binutils/sysdep.h
@@ -174,4 +174,23 @@ void *alloca ();
/* Used by ar.c and objcopy.c. */
#define BUFSIZE 8192
+/* For PATH_MAX. */
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
+#ifndef PATH_MAX
+/* For MAXPATHLEN. */
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
+# ifndef PATH_MAX
+# ifdef MAXPATHLEN
+# define PATH_MAX MAXPATHLEN
+# else
+# define PATH_MAX 1024
+# endif
+# endif
+#endif
+
#endif /* _BIN_SYSDEP_H */