Skip to content
Snippets Groups Projects
Commit 783bbcf4 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix "implicit declaration of ftello" warning: add AC_FUNC_FSEEKO in...

Fix "implicit declaration of ftello" warning: add AC_FUNC_FSEEKO in configure.in and always include orconfig.h before anything else


svn:r2854
parent 846f71dc
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,8 @@ dnl These headers are not essential ...@@ -145,7 +145,8 @@ dnl These headers are not essential
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_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]) AC_CHECK_MEMBERS([struct timeval.tv_sec])
...@@ -236,12 +237,10 @@ AC_SUBST(LOCALSTATEDIR) ...@@ -236,12 +237,10 @@ AC_SUBST(LOCALSTATEDIR)
# than autoconf's macros like. # than autoconf's macros like.
CFLAGS="$CFLAGS -Wall -g -O2" CFLAGS="$CFLAGS -Wall -g -O2"
# Add some more warnings which we use in the cvs version but not in the # Add some more warnings which we use in the cvs version but not in the
# released versions. # 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" #CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls"
#CFLAGS="$CFLAGS -Wwrite-strings -Wredundant-decls"
# Add these in when you feel like fun. # 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" echo "confdir: $CONFDIR"
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
* \brief Implementation of a simple AES counter mode. * \brief Implementation of a simple AES counter mode.
**/ **/
#include "orconfig.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "orconfig.h"
#include "aes.h" #include "aes.h"
#include "util.h" #include "util.h"
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
* \brief Functions to send messages to log files or the console. * \brief Functions to send messages to log files or the console.
*/ */
#include "orconfig.h"
#include <stdarg.h> #include <stdarg.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "orconfig.h"
#include "./util.h" #include "./util.h"
#include "./log.h" #include "./log.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment