Skip to content
Snippets Groups Projects
Commit d9818ed2 authored by Jonas Walldn's avatar Jonas Walldn
Browse files

Add more header files to avoid errors due to implicitly declared functions.

parent 716b0fe8
No related branches found
No related tags found
No related merge requests found
......@@ -5041,6 +5041,7 @@ MY_CHECK_FUNCTION(infnan,
[
#include <errno.h>
#include <math.h>
#include <stdlib.h>
], [
double pinf = infnan(ERANGE);
double ninf = infnan(-ERANGE);
......@@ -5051,6 +5052,7 @@ MY_CHECK_FUNCTION(infnan,
MY_CHECK_FUNCTION(_isnan,
[
#include <float.h>
#include <stdlib.h>
], [
exit(_isnan(0.0));
])
......@@ -6523,6 +6525,11 @@ AC_CACHE_VAL(pike_cv_sys_signal_oneshot,
#ifdef HAVE_POLL_H
#include <poll.h>
#endif
#include <string.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
VOLATILE sig_atomic_t sigrun[2]= { 0, 0 };
RETSIGTYPE func(int sig)
{
......@@ -6734,6 +6741,7 @@ AC_CACHE_VAL(pike_cv_lc___declspec,
AC_TRY_RUN([
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
__declspec(noreturn) void fatal(char *foo,...);
__declspec(noreturn) void fatal(char *foo,...)
......@@ -6752,6 +6760,7 @@ int main() { exit(0); }
AC_TRY_LINK([
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
__declspec(noreturn) void fatal(char *foo,...);
__declspec(noreturn) void fatal(char *foo,...)
......
......@@ -448,6 +448,7 @@ fi
#endif
#endif
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
#ifdef MYSQL_VERSION_ID
......
......@@ -15,6 +15,7 @@ MY_CHECK_FUNCTION(FindFirstChangeNotification,
#ifdef HAVE_FILEAPI_H
#include <FileAPI.h>
#endif
#include <stdlib.h>
], [
FindFirstChangeNotification("", 0, 0);
exit(0);
......
......@@ -19,6 +19,7 @@ if test x$with_jpeglib = xyes ; then
AC_CACHE_VAL(pike_cv_jpeg_jerr_bad_crop_spec, [
AC_TRY_COMPILE([
#include <jerror.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int err = JERR_BAD_CROP_SPEC;
......
......@@ -64,6 +64,7 @@ if test x$with_ttflib = xyes ; then
AC_CACHE_VAL(pike_cv_lib_ttf_works, [
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#if defined(HAVE_FREETYPE_FREETYPE_H) && defined(HAVE_FREETYPE_FTXKERN_H)
#include <freetype/freetype.h>
......
......@@ -87,6 +87,7 @@ dnl undefine(PIKE_PREFIX_NAME)
LIBS="${LIBS-} -l$1"
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
/* Kludge for some compilers only defining __STDC__ in strict mode. */
#if !defined(__STDC__) && defined(HAVE_ANSI_CONCAT) && defined(PIKE_MPN_PREFIX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment