[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix "implicit declaration of ftello" warning: add AC_FUNC_F...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Fix "implicit declaration of ftello" warning: add AC_FUNC_F...
- From: nickm@seul.org (Nick Mathewson)
- Date: Sun, 14 Nov 2004 12:21:34 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 14 Nov 2004 12:21:57 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/tor
In directory moria.mit.edu:/tmp/cvs-serv30281
Modified Files:
configure.in
Log Message:
Fix "implicit declaration of ftello" warning: add AC_FUNC_FSEEKO in configure.in and always include orconfig.h before anything else
Index: configure.in
===================================================================
RCS file: /home/or/cvsroot/tor/configure.in,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -d -r1.139 -r1.140
--- configure.in 14 Nov 2004 09:05:56 -0000 1.139
+++ configure.in 14 Nov 2004 17:21:32 -0000 1.140
@@ -145,7 +145,8 @@
AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h)
-AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam fseeko ftello)
+AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam ftello)
+AC_FUNC_FSEEKO
AC_CHECK_MEMBERS([struct timeval.tv_sec])
@@ -236,12 +237,10 @@
# than autoconf's macros like.
CFLAGS="$CFLAGS -Wall -g -O2"
# Add some more warnings which we use in the cvs version but not in the
-# released versions.
-#CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes"
-#CFLAGS="$CFLAGS -Wwrite-strings -Wredundant-decls"
-
+# released versions. (Some relevant gcc versions can't handle these.)
+#CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls"
# Add these in when you feel like fun.
-# -Wbad-function-cast -Werror -Wdeclaration-after-statement
+#CFLAGS="$CFLAGS -Wbad-function-cast -Werror -Wdeclaration-after-statement"
echo "confdir: $CONFDIR"