aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-02 05:22:49 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-02 05:22:49 +0000
commitc519aea6404bd3dc7021fd7f994440e6744a2ee6 (patch)
tree1951ba9d78bcdd9b41d330d2e972c8f71b8abcde /localdecls.h
parentneed to include config.h (diff)
downloadsandbox-c519aea6404bd3dc7021fd7f994440e6744a2ee6.tar.gz
sandbox-c519aea6404bd3dc7021fd7f994440e6744a2ee6.tar.bz2
sandbox-c519aea6404bd3dc7021fd7f994440e6744a2ee6.zip
turn create-localdecls into semi-autotooled
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'localdecls.h')
-rw-r--r--localdecls.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h
new file mode 100644
index 0000000..0a27b50
--- /dev/null
+++ b/localdecls.h
@@ -0,0 +1,43 @@
+/*
+ * File: localdecls.h
+ *
+ * Copyright 1999-2004 Gentoo Foundation
+ * Distributed under the terms of the GNU General Public License v2
+ * $Header$
+ */
+
+#ifndef __LOCALDECLS_H__
+#define __LOCALDECLS_H__
+
+/* take care of broken ld loading */
+#if defined(__GLIBC__)
+
+# if __GLIBC__ <= 2 && __GLIBC_MINOR__ <= 2
+# define BROKEN_RTLD_NEXT
+# define LIBC 5
+# endif
+
+# if !defined(BROKEN_RTLD_NEXT)
+# if defined(__mips__)
+# define BROKEN_RTLD_NEXT
+# endif
+# endif
+
+#endif
+
+#define GLIBC_MINOR __GLIBC_MINOR__
+
+#ifdef PATH_MAX
+# define SB_PATH_MAX PATH_MAX * 2
+# if (SB_PATH_MAX >= INT_MAX) || (SB_PATH_MAX < PATH_MAX)
+# undef SB_PATH_MAX
+# define SB_PATH_MAX PATH_MAX + 25
+# if (SB_PATH_MAX >= INT_MAX) || (SB_PATH_MAX < PATH_MAX)
+# error SB_PATH_MAX too big!
+# endif
+# endif
+#else
+# error PATH_MAX not defined!
+#endif
+
+#endif