forked from osmocom/wireshark
Don't check for C89 headers.
1988 called, they want their lack of a C standard back. We don't need to check whether we have stdarg.h, stddef.h, stdlib.h, or string.h, as they're specified by C89 and I don't think there are any platforms we care about that don't have a C89 environment in which we could be built. Change-Id: I447551181284fab7722354b62774625ed8ee94bc Reviewed-on: https://code.wireshark.org/review/7110 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
f62353755b
commit
a64fc6cf44
|
@ -40,12 +40,8 @@ check_include_file("netdb.h" HAVE_NETDB_H)
|
|||
#cmake_pop_check_state()
|
||||
check_include_file("portaudio.h" HAVE_PORTAUDIO_H)
|
||||
check_include_file("pwd.h" HAVE_PWD_H)
|
||||
check_include_file("stdarg.h" HAVE_STDARG_H)
|
||||
check_include_file("stddef.h" HAVE_STDDEF_H)
|
||||
check_include_file("stdint.h" HAVE_STDINT_H)
|
||||
check_include_file("stdlib.h" HAVE_STDLIB_H)
|
||||
check_include_file("strings.h" HAVE_STRINGS_H)
|
||||
check_include_file("string.h" HAVE_STRING_H)
|
||||
check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H)
|
||||
check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
|
||||
check_include_file("sys/socket.h" HAVE_SYS_SOCKET_H)
|
||||
|
|
|
@ -262,9 +262,6 @@ read_keytab_file_from_preferences(void)
|
|||
#ifdef _WIN32
|
||||
/* prevent redefinition warnings in kfw-2.5\inc\win_mac.h */
|
||||
#undef HAVE_GETADDRINFO
|
||||
#undef HAVE_STDARG_H
|
||||
#undef HAVE_STDLIB_H
|
||||
#undef HAVE_STRING_H
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
#endif /* _WIN32 */
|
||||
#include <krb5.h>
|
||||
|
|
|
@ -274,24 +274,12 @@
|
|||
/* Define to 1 if you have the WinSparkle library */
|
||||
#cmakedefine HAVE_SOFTWARE_UPDATE 1
|
||||
|
||||
/* Define to 1 if you have the <stdarg.h> header file. */
|
||||
#cmakedefine HAVE_STDARG_H 1
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#cmakedefine HAVE_STDDEF_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#cmakedefine HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#cmakedefine HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#cmakedefine HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#cmakedefine HAVE_STRING_H 1
|
||||
|
||||
/* Define if you have the 'strptime' function. */
|
||||
#cmakedefine HAVE_STRPTIME 1
|
||||
|
||||
|
|
|
@ -119,12 +119,6 @@
|
|||
/* Define if you have the <snmp/version.h> header file. */
|
||||
/* #undef HAVE_SNMP_VERSION_H */
|
||||
|
||||
/* Define if you have the <stdarg.h> header file. */
|
||||
#define HAVE_STDARG_H 1
|
||||
|
||||
/* Define if you have the <stddef.h> header file. */
|
||||
/* #undef HAVE_STDDEF_H */
|
||||
|
||||
/* Define if you have the <sys/ioctl.h> header file. */
|
||||
/* #undef HAVE_SYS_IOCTL_H */
|
||||
|
||||
|
|
|
@ -2537,7 +2537,7 @@ AC_SUBST(LIBCAP_LIBS)
|
|||
|
||||
dnl Checks for header files.
|
||||
dnl Some of these may not be needed: http://hacks.owlfolio.org/header-survey/
|
||||
AC_CHECK_HEADERS(fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h stdarg.h stddef.h unistd.h)
|
||||
AC_CHECK_HEADERS(fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h unistd.h)
|
||||
AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h)
|
||||
AC_CHECK_HEADERS(netinet/in.h)
|
||||
AC_CHECK_HEADERS(arpa/inet.h arpa/nameser.h)
|
||||
|
|
|
@ -23,9 +23,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_STDDEF_H
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
#include <epan/packet.h>
|
||||
#include <epan/to_str.h>
|
||||
|
|
|
@ -513,9 +513,6 @@ read_keytab_file_from_preferences(void)
|
|||
#ifdef _WIN32
|
||||
/* prevent redefinition warnings in kfw-2.5\inc\win_mac.h */
|
||||
#undef HAVE_GETADDRINFO
|
||||
#undef HAVE_STDARG_H
|
||||
#undef HAVE_STDLIB_H
|
||||
#undef HAVE_STRING_H
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
#endif /* _WIN32 */
|
||||
#include <krb5.h>
|
||||
|
@ -4245,7 +4242,7 @@ dissect_kerberos_ChangePasswdData(gboolean implicit_tag _U_, tvbuff_t *tvb _U_,
|
|||
|
||||
|
||||
/*--- End of included file: packet-kerberos-fn.c ---*/
|
||||
#line 1985 "../../asn1/kerberos/packet-kerberos-template.c"
|
||||
#line 1982 "../../asn1/kerberos/packet-kerberos-template.c"
|
||||
|
||||
/* Make wrappers around exported functions for now */
|
||||
int
|
||||
|
@ -5283,7 +5280,7 @@ void proto_register_kerberos(void) {
|
|||
NULL, HFILL }},
|
||||
|
||||
/*--- End of included file: packet-kerberos-hfarr.c ---*/
|
||||
#line 2366 "../../asn1/kerberos/packet-kerberos-template.c"
|
||||
#line 2363 "../../asn1/kerberos/packet-kerberos-template.c"
|
||||
};
|
||||
|
||||
/* List of subtrees */
|
||||
|
@ -5357,7 +5354,7 @@ void proto_register_kerberos(void) {
|
|||
&ett_kerberos_ChangePasswdData,
|
||||
|
||||
/*--- End of included file: packet-kerberos-ettarr.c ---*/
|
||||
#line 2382 "../../asn1/kerberos/packet-kerberos-template.c"
|
||||
#line 2379 "../../asn1/kerberos/packet-kerberos-template.c"
|
||||
};
|
||||
|
||||
static ei_register_info ei[] = {
|
||||
|
|
|
@ -27,10 +27,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_STDARG_H
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
|
|
|
@ -35,11 +35,7 @@
|
|||
#ifndef __PROTO_H__
|
||||
#define __PROTO_H__
|
||||
|
||||
#ifdef HAVE_STDARG_H
|
||||
# include <stdarg.h>
|
||||
#else
|
||||
# include <varargs.h>
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue