]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
parse.h:
authorFrank Kardel <kardel@ntp.org>
Sun, 14 Jan 2007 08:46:00 +0000 (08:46 +0000)
committerFrank Kardel <kardel@ntp.org>
Sun, 14 Jan 2007 08:46:00 +0000 (08:46 +0000)
  Bug 753: make union timestamp anonymous (Philip Prindeville)
  now there are OSes that claim that name in netinet/ip.h...

bk: 45a9edc8wMAltWQF5lyFDfvl7eVewQ

include/parse.h

index f10d4bea185ba6f9cb27c9a380a02a535de130a2..8b4edcf8e625d81113fab310ea2a3a0d3148f2d2 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * /src/NTP/ntp4-dev/include/parse.h,v 4.11 2005/06/25 10:58:45 kardel RELEASE_20050625_A
+ * /src/NTP/REPOSITORY/ntp4-dev/include/parse.h,v 4.12 2007/01/14 08:36:03 kardel RELEASE_20070114_A
  *
- * parse.h,v 4.11 2005/06/25 10:58:45 kardel RELEASE_20050625_A
+ * parse.h,v 4.12 2007/01/14 08:36:03 kardel RELEASE_20070114_A
  *
  * Copyright (c) 1995-2005 by Frank Kardel <kardel <AT> ntp.org>
  * Copyright (c) 1989-1994 by Frank Kardel, Friedrich-Alexander Universität Erlangen-Nürnberg, Germany
@@ -35,7 +35,7 @@
 #ifndef __PARSE_H__
 #define __PARSE_H__
 #if    !(defined(lint) || defined(__GNUC__))
-  static char parsehrcsid[]="parse.h,v 4.11 2005/06/25 10:58:45 kardel RELEASE_20050625_A";
+  static char parsehrcsid[]="parse.h,v 4.12 2007/01/14 08:36:03 kardel RELEASE_20070114_A";
 #endif
 
 #include "ntp_types.h"
@@ -185,7 +185,7 @@ extern unsigned int splclock P((void));
  */
 #define PARSE_TCMAX        400   /* maximum addition data size */
 
-typedef union timestamp
+typedef union
 {
   struct timeval tv;           /* timeval - kernel view */
   l_fp           fp;           /* fixed point - ntp view */
@@ -390,6 +390,10 @@ extern int parse_timedout P((parse_t *, timestamp_t *, struct timeval *));
  * History:
  *
  * parse.h,v
+ * Revision 4.12  2007/01/14 08:36:03  kardel
+ * make timestamp union anonymous to avoid conflicts with
+ * some OSes that choose to create a nameing conflic here.
+ *
  * Revision 4.11  2005/06/25 10:58:45  kardel
  * add missing log keywords
  *