aboutsummaryrefslogtreecommitdiff
path: root/binutils/sysdep.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-02-03 15:48:50 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-02-03 15:48:50 +0000
commit0dafdf3fdf89c80c00904b699ff167ec1a292dec (patch)
tree0b0c265ae270a69f80a693e37ce883e3b724180a /binutils/sysdep.h
parent34a0278d91d5af416424049a8a7a89b60b62ed18 (diff)
downloadgdb-0dafdf3fdf89c80c00904b699ff167ec1a292dec.zip
gdb-0dafdf3fdf89c80c00904b699ff167ec1a292dec.tar.gz
gdb-0dafdf3fdf89c80c00904b699ff167ec1a292dec.tar.bz2
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 18518dc..e3d60d9 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 */