]> git.saurik.com Git - apple/libc.git/blobdiff - include/protocols/timed.h
Libc-1044.1.2.tar.gz
[apple/libc.git] / include / protocols / timed.h
index 5539106a06b5874d5bb9372b6da056b68018adb7..6999dff4d2e7e7b1d47aa1f53d8a041568159d2a 100644 (file)
@@ -1,10 +1,8 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000, 2006 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
 #define        TSPVERSION      1
 #define ANYADDR        NULL
 
+#ifdef __LP64__
+#include <sys/_types.h>
+#include <sys/_types/_timeval32.h>
+#endif /* __LP64__ */
+
 struct tsp {
-       u_char  tsp_type;
-       u_char  tsp_vers;
-       u_short tsp_seq;
+       unsigned char   tsp_type;
+       unsigned char   tsp_vers;
+       unsigned short  tsp_seq;
        union {
+#ifdef __LP64__
+               struct timeval32 tspu_time;
+#else /* !__LP64__ */
                struct timeval tspu_time;
+#endif /* __LP64__ */
                char tspu_hopcnt;
        } tsp_u;
-       char tsp_name[MAXHOSTNAMELEN];
+       char            tsp_name[MAXHOSTNAMELEN];
 };
 
 #define        tsp_time        tsp_u.tspu_time