]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix order of variable declarations to ensure required types are declared first for...
authorDanny Mayer <mayer@ntp.org>
Wed, 10 Mar 2004 03:24:49 +0000 (22:24 -0500)
committerDanny Mayer <mayer@ntp.org>
Wed, 10 Mar 2004 03:24:49 +0000 (22:24 -0500)
bk: 404e8a81351IKepYsT4DJSHY4somMA

include/ntp_rfc2553.h

index c2c341483f2f5e2890ee61c754aa203f618f10cc..7387f2167cbcea98ac75e4c6e6268e69bbf48410 100644 (file)
  * 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
  */