From: Danny Mayer Date: Wed, 10 Mar 2004 03:24:49 +0000 (-0500) Subject: Fix order of variable declarations to ensure required types are declared first for... X-Git-Tag: NTP_4_2_3~174^2~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54755aaa60bc9e02515602a254dcbe3645787c28;p=thirdparty%2Fntp.git Fix order of variable declarations to ensure required types are declared first for the following structures bk: 404e8a81351IKepYsT4DJSHY4somMA --- diff --git a/include/ntp_rfc2553.h b/include/ntp_rfc2553.h index c2c341483f..7387f2167c 100644 --- a/include/ntp_rfc2553.h +++ b/include/ntp_rfc2553.h @@ -81,6 +81,21 @@ * If various macros are not defined we need to define them */ +#ifndef AF_INET6 +#define AF_INET6 AF_MAX +#define PF_INET6 AF_INET6 +#endif + +#ifndef HAVE_TYPE_U_INT8_T +typedef u_char u_int8_t; +typedef u_short u_int16_t; +typedef u_int32 u_int32_t; +#endif /* HAVE_TYPE_U_INT8_T */ + +#ifndef HAVE_TYPE_U_INT64_T +typedef struct u_int64_t { u_int32 val[2]; } u_int64_t; +#endif /* HAVE_TYPE_U_INT64_T */ + #if !defined(_SS_MAXSIZE) && !defined(_SS_ALIGNSIZE) #define _SS_MAXSIZE 128 @@ -122,21 +137,6 @@ struct sockaddr_storage { #ifndef ISC_PLATFORM_HAVEIPV6 -#ifndef AF_INET6 -#define AF_INET6 AF_MAX -#define PF_INET6 AF_INET6 -#endif - -#ifndef HAVE_TYPE_U_INT8_T -typedef u_char u_int8_t; -typedef u_short u_int16_t; -typedef u_int32 u_int32_t; -#endif /* HAVE_TYPE_U_INT8_T */ - -#ifndef HAVE_TYPE_U_INT64_T -typedef struct u_int64_t { u_int32 val[2]; } u_int64_t; -#endif /* HAVE_TYPE_U_INT64_T */ - /* * IPv6 address */