]> Zhao Yanbai Git Server - minix.git/commitdiff
Update minix-port.patch.
authorEvgeniy Ivanov <lolkaantimat@gmail.com>
Tue, 12 Jul 2011 16:44:29 +0000 (16:44 +0000)
committerBen Gras <ben@minix3.org>
Tue, 12 Jul 2011 14:39:55 +0000 (16:39 +0200)
lib/nbsd_libm/minix-port.patch
nbsd_include/minix-port.patch

index 18957fddb8cb8a988e98d0b8ca231ec85a800f44..ebe0d4cd9069310f6d87c86d1b6c5e0a864bc945 100644 (file)
@@ -1,17 +1,13 @@
 diff -ru nbsdsrc/src/lib/libm/Makefile lib/nbsd_libm/Makefile
 --- nbsdsrc/src/lib/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"
 +MACHINE_ARCH:= ${MACHINE}
 +.endif
-+
-+.warning  MACHINE_ARCH is now ${MACHINE_ARCH}
 +
  #
  # There are two options in making libm at fdlibm compile time:
index b3b07a6f5a595723b9a510be69150455037cb405..8928d1cd647510eb3cf0f68c801c96cf1db5e77c 100644 (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
 --- nbsdsrc/src/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);
  
  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_NOSPACE              0x02
-@@ -280,7 +282,9 @@
+@@ -280,7 +284,9 @@
  int    humanize_number(char *, size_t, int64_t, const char *, int, int);
  int    dehumanize_number(const char *, int64_t *);