/*
- * $Id: squid_types.h,v 1.8 2003/06/01 09:01:41 hno Exp $
+ * $Id: squid_types.h,v 1.9 2007/08/14 19:17:43 serassio Exp $
*
* * * * * * * * Legal stuff * * * * * * *
*
#include <sys/select.h>
#endif
+/*
+ * ISO C99 Standard printf() macros for 64 bit integers
+ * On some 64 bit platform, HP Tru64 is one, for printf must be used
+ * "%lx" instead of "%llx"
+ */
+#ifndef PRId64
+#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
+#define PRId64 "I64d"
+#elif SIZEOF_INT64_T > SIZEOF_LONG
+#define PRId64 "lld"
+#else
+#define PRId64 "ld"
+#endif
+#endif
+
+#ifndef PRIu64
+#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
+#define PRIu64 "I64u"
+#elif SIZEOF_INT64_T > SIZEOF_LONG
+#define PRIu64 "llu"
+#else
+#define PRIu64 "lu"
+#endif
+#endif
+
#endif /* SQUID_TYPES_H */
/*
- * $Id: util.c,v 1.96 2007/08/13 17:20:50 hno Exp $
+ * $Id: util.c,v 1.97 2007/08/14 19:17:43 serassio Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
xint64toa(int64_t num)
{
static char buf[24]; /* 2^64 = 18446744073709551616 */
- snprintf(buf, sizeof(buf), "%"PRId64, num);
+ snprintf(buf, sizeof(buf), "%" PRId64, num);
return buf;
}
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
#if HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
/*
- * $Id: squid.h,v 1.264 2007/08/14 17:05:47 serassio Exp $
+ * $Id: squid.h,v 1.265 2007/08/14 19:17:45 serassio Exp $
*
* AUTHOR: Duane Wessels
*
#define IPPROTO_TCP 0
#endif
-/*
- * ISO C99 Standard printf() macros for 64 bit integers
- * On some 64 bit platform, HP Tru64 is one, for printf must be used
- * "%lx" instead of "%llx"
- */
-#ifndef PRId64
-#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
-#define PRId64 "I64d"
-#elif SIZEOF_INT64_T > SIZEOF_LONG
-#define PRId64 "lld"
-#else
-#define PRId64 "ld"
-#endif
-#endif
-
-#ifndef PRIu64
-#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
-#define PRIu64 "I64u"
-#elif SIZEOF_INT64_T > SIZEOF_LONG
-#define PRIu64 "llu"
-#else
-#define PRIu64 "lu"
-#endif
-#endif
-
#endif /* SQUID_H */