Преглед изворни кода

pacify the new stricter g++ compiler
Author: tausq
Date: 2001-03-04 05:14:13 GMT
pacify the new stricter g++ compiler

Arch Librarian пре 22 година
родитељ
комит
0b62d3825c
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      buildlib/tools.m4

+ 2 - 0
buildlib/tools.m4

@@ -95,6 +95,7 @@ AC_DEFUN(ah_GLIBC_VER,
 	cat <<_GLIBC_>$dummy.c
 #include <features.h>
 #include <stdio.h>
+#include <stdlib.h>
 int main(int argc, char **argv) { printf("libc6.%d",__GLIBC_MINOR__); exit(0); }
 _GLIBC_
 	${CC-cc} $dummy.c -o $dummy
@@ -115,6 +116,7 @@ AC_DEFUN(ah_LIBSTDCPP_VER,
 	cat <<_LIBSTDCPP_>$dummy.cc
 #include <features.h>
 #include <stdio.h>
+#include <stdlib.h>
 int main(int argc, char **argv) { exit(0); }
 _LIBSTDCPP_
 	${CXX-c++} $dummy.cc -o $dummy