[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#630907: same problem with <stdlib.h>



Hi,

Same problem also affects <stdlib.h>.  In this case, switching
freebsd-buildutils to libbsd overlay caused strtod() to be called in
cond.c without its prototype.  The implicit declaration breaks
freebsd-make integer parsing on i386.

-- 
Robert Millan
--- /usr/include/bsd/stdlib.h~	2011-06-03 12:19:03.000000000 +0000
+++ /usr/include/bsd/stdlib.h	2011-07-03 23:01:13.621939659 +0000
@@ -26,13 +26,6 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef LIBBSD_STDLIB_H
-#define LIBBSD_STDLIB_H
-
-#include <sys/cdefs.h>
-#include <sys/stat.h>
-#include <stdint.h>
-
 #ifdef LIBBSD_OVERLAY
 #include_next <stdlib.h>
 #else
@@ -57,6 +50,13 @@
 #endif
 #endif
 
+#include <sys/cdefs.h>
+#include <sys/stat.h>
+#include <stdint.h>
+
+#ifndef LIBBSD_STDLIB_H
+#define LIBBSD_STDLIB_H
+
 __BEGIN_DECLS
 u_int32_t arc4random();
 void arc4random_stir();

Reply to: