Update minix-port.patch.

This commit is contained in:
Evgeniy Ivanov 2011-07-12 16:44:29 +00:00 committed by Ben Gras
parent 8a5484202c
commit 48331843ea
2 changed files with 12 additions and 7 deletions

View file

@ -1,17 +1,13 @@
diff -ru nbsdsrc/src/lib/libm/Makefile lib/nbsd_libm/Makefile diff -ru nbsdsrc/src/lib/libm/Makefile lib/nbsd_libm/Makefile
--- nbsdsrc/src/lib/libm/Makefile --- nbsdsrc/src/lib/libm/Makefile
+++ lib/nbsd_libm/Makefile +++ lib/nbsd_libm/Makefile
@@ -13,6 +13,14 @@ @@ -13,6 +13,10 @@
# #
# #
+.warning MACHINE_ARCH is first ${MACHINE_ARCH}
+
+.if ${MACHINE_ARCH} == "unknown" +.if ${MACHINE_ARCH} == "unknown"
+MACHINE_ARCH:= ${MACHINE} +MACHINE_ARCH:= ${MACHINE}
+.endif +.endif
+
+.warning MACHINE_ARCH is now ${MACHINE_ARCH}
+ +
# #
# There are two options in making libm at fdlibm compile time: # There are two options in making libm at fdlibm compile time:

View file

@ -285,7 +285,16 @@ diff -ru nbsdsrc/src/include/stdio.h nbsd_include/stdio.h
diff -ru nbsdsrc/src/include/stdlib.h nbsd_include/stdlib.h diff -ru nbsdsrc/src/include/stdlib.h nbsd_include/stdlib.h
--- nbsdsrc/src/include/stdlib.h --- nbsdsrc/src/include/stdlib.h
+++ nbsd_include/stdlib.h +++ nbsd_include/stdlib.h
@@ -265,9 +265,11 @@ @@ -244,6 +244,8 @@
void *alloca(int); /* built-in for gcc */
#elif defined(__PCC__) && !defined(__GNUC__)
#define alloca(size) __builtin_alloca(size)
+#elif (__GNUC__ >= 2)
+#define alloca(size) __builtin_alloca(size)
#else
void *alloca(size_t);
#endif /* __GNUC__ */
@@ -265,9 +267,11 @@
void csetexpandtc(int); void csetexpandtc(int);
int daemon(int, int); int daemon(int, int);
@ -297,7 +306,7 @@ diff -ru nbsdsrc/src/include/stdlib.h nbsd_include/stdlib.h
#define HN_DECIMAL 0x01 #define HN_DECIMAL 0x01
#define HN_NOSPACE 0x02 #define HN_NOSPACE 0x02
@@ -280,7 +282,9 @@ @@ -280,7 +284,9 @@
int humanize_number(char *, size_t, int64_t, const char *, int, int); int humanize_number(char *, size_t, int64_t, const char *, int, int);
int dehumanize_number(const char *, int64_t *); int dehumanize_number(const char *, int64_t *);