2012-02-21 13:46:30 +01:00
|
|
|
--- src/lib/libast/astsa/ast.h
|
2016-10-12 13:36:28 +02:00
|
|
|
+++ src/lib/libast/astsa/ast.h 2012-02-21 12:03:33.000000000 +0000
|
|
|
|
@@ -93,6 +93,12 @@ typedef struct
|
2012-02-21 13:46:30 +01:00
|
|
|
#define pointerof(x) ((void*)((char*)0+(x)))
|
|
|
|
#define roundof(x,y) (((x)+(y)-1)&~((y)-1))
|
|
|
|
|
|
|
|
+#ifdef __GNUC__
|
|
|
|
+#if (__GNUC__ >= 4) && !defined(offsetof)
|
|
|
|
+#define offsetof(type,member) __builtin_offsetof(type,member)
|
2007-04-03 21:36:49 +02:00
|
|
|
+#endif
|
|
|
|
+#endif
|
2012-02-21 13:46:30 +01:00
|
|
|
+
|
|
|
|
#ifndef offsetof
|
|
|
|
#define offsetof(type,member) ((unsigned long)&(((type*)0)->member))
|
|
|
|
#endif
|
|
|
|
--- src/lib/libast/features/libpath.sh
|
2016-10-12 13:36:28 +02:00
|
|
|
+++ src/lib/libast/features/libpath.sh 2007-03-30 16:45:55.000000000 +0000
|
|
|
|
@@ -21,7 +21,7 @@
|
2012-02-21 13:46:30 +01:00
|
|
|
########################################################################
|
|
|
|
ok=0
|
|
|
|
for i in \
|
|
|
|
- -x /lib/ld.so /lib/ld-*.so /usr/lib/ld.so /lib/rld \
|
|
|
|
+ -x /lib64/ld.so /lib/ld.so /lib64/ld-*.so /lib/ld-*.so /usr/lib/ld.so /lib/rld \
|
2016-10-12 13:36:28 +02:00
|
|
|
-f /usr/shlib/libc.so /shlib/libc.so /usr/lib/libc.so \
|
|
|
|
-r /usr/shlib/libc.so /shlib/libc.so
|
2012-02-21 13:46:30 +01:00
|
|
|
do case $i in
|
|
|
|
--- src/lib/libast/features/map.c
|
2016-10-12 13:36:28 +02:00
|
|
|
+++ src/lib/libast/features/map.c 2009-12-09 11:13:24.000000000 +0000
|
2013-02-05 18:51:33 +01:00
|
|
|
@@ -67,10 +67,14 @@ main()
|
2012-02-21 13:46:30 +01:00
|
|
|
#define _map_malloc 1
|
|
|
|
printf("\n");
|
|
|
|
printf("#define _map_libc 1\n");
|
|
|
|
+#endif
|
|
|
|
+#if _map_libc || defined(__linux__)
|
|
|
|
printf("#undef basename\n");
|
|
|
|
printf("#define basename _ast_basename\n");
|
|
|
|
printf("#undef dirname\n");
|
|
|
|
printf("#define dirname _ast_dirname\n");
|
|
|
|
+#endif
|
|
|
|
+#if _map_libc
|
|
|
|
#if !_lib_eaccess
|
|
|
|
printf("#undef eaccess\n");
|
|
|
|
printf("#define eaccess _ast_eaccess\n");
|
|
|
|
--- src/lib/libast/features/sys
|
2016-10-12 13:36:28 +02:00
|
|
|
+++ src/lib/libast/features/sys 2012-02-21 12:04:43.000000000 +0000
|
|
|
|
@@ -134,7 +134,7 @@ tst typ_signed_size_t output{
|
2012-02-21 13:46:30 +01:00
|
|
|
}
|
|
|
|
}end
|
|
|
|
|
|
|
|
-define offsetof (type,member) ((size_t)&(((type*)0)->member))
|
|
|
|
+define offsetof (type,member) __builtin_offsetof(type,member)
|
|
|
|
define EXIT_FAILURE 1
|
|
|
|
define EXIT_SUCCESS 0
|
|
|
|
define MB_CUR_MAX 1
|
2013-02-05 18:51:33 +01:00
|
|
|
--- src/lib/libdll/features/dll
|
2016-10-12 13:36:28 +02:00
|
|
|
+++ src/lib/libdll/features/dll 2007-03-30 16:40:59.000000000 +0000
|
2013-02-05 18:51:33 +01:00
|
|
|
@@ -15,7 +15,7 @@ tst dll_DYNAMIC link{
|
|
|
|
}end
|
|
|
|
tst run{
|
|
|
|
lib=
|
|
|
|
- for d in /shlib /usr/shlib /lib /usr/lib
|
|
|
|
+ for d in /lib64 /usr/lib64 /lib /usr/lib
|
|
|
|
do if test -d $d
|
|
|
|
then for s in "*.*" "*[!a]*"
|
|
|
|
do for b in libc
|
|
|
|
@@ -52,7 +52,7 @@ tst run{
|
|
|
|
"") lib=/lib/libc.so.1 ;;
|
|
|
|
esac
|
|
|
|
case $lib in
|
|
|
|
- /usr/lib/*)
|
|
|
|
+ /usr/lib64/*|/usr/lib/*)
|
|
|
|
case `package` in
|
|
|
|
sgi.mips3)
|
|
|
|
abi=/lib32
|
|
|
|
@@ -65,7 +65,7 @@ tst run{
|
|
|
|
esac
|
|
|
|
case $abi in
|
|
|
|
?*) if test -d $abi
|
|
|
|
- then lib=`echo $lib | sed 's,/usr/lib/,,'`
|
|
|
|
+ then lib=`echo $lib | sed 's,/usr/lib\(64\)\?/,,'`
|
|
|
|
lib=$abi/$lib
|
|
|
|
fi
|
|
|
|
;;
|