blob: 5195500c8bc3e6a197cd8d30c6284fa5f4a17579 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$NetBSD: patch-ag,v 1.2 2003/10/05 04:25:15 taca Exp $
--- conf.h.orig 2001-07-09 18:19:03.000000000 +0900
+++ conf.h
@@ -26,17 +26,20 @@
#if SIZEOF_OFF_T == SIZEOF_LONG_LONG
# define LONGLONG_OFF_T
+# define LONGLONG_CAST(c) (long long)(c)
# ifndef LONGLONG_OPTC
# if defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__)
# define LONGLONG_OPTC "q"
# elif defined( __sun__ )
# define LONGLONG_OPTC "ll"
# else
-# define LONGLONG_OPTC "ul"
+# define LONGLONG_OPTC "lu"
# endif
# endif /* LONGLONG_OPTC */
#elif SIZEOF_OFF_T == SIZEOF_LONG
# undef LONGLONG_OFF_T
+# define LONGLONG_CAST(c) (c)
+# define LONGLONG_OPTC /* */
#else
# error
#endif /* SIZEOF_OFF_T == SIZEOF_LONG_LONG */
@@ -522,7 +525,7 @@
#ifndef HAVE_MEMMOVE
#include "common/memmove.h"
-#endif HAVE_MEMMOVE
+#endif /* HAVE_MEMMOVE */
#ifdef LOGWTMP
#include <utmp.h>
|