aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-08-01 12:36:59 -0400
committerNick Mathewson <nickm@torproject.org>2011-08-01 12:36:59 -0400
commite802199cb3a2ebb4c09eaf4949e279acd3b46fc8 (patch)
treedd7f9967cc185487620e34692611f3d0b7b88a4b /src/common/util.c
parent9d77f24cf5032c4a1dbf64ec2e25d7debf3758ed (diff)
downloadtor-e802199cb3a2ebb4c09eaf4949e279acd3b46fc8.tar.gz
tor-e802199cb3a2ebb4c09eaf4949e279acd3b46fc8.zip
Initial patch to build Tor with msvc and nmake
We'll still need to tweak it so that it looks for includes and libraries somewhere more sensible than "where we happened to find them on Erinn's system"; so that tests and tools get built too; so that it's a bit documented; and so that we actually try running the output. Work done with Erinn Clark.
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 15b6e7130e..601f2be3e2 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -14,6 +14,9 @@
#define _GNU_SOURCE
#include "orconfig.h"
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
#define UTIL_PRIVATE
#include "util.h"
#include "torlog.h"
@@ -68,9 +71,6 @@
#ifdef HAVE_SYS_FCNTL_H
#include <sys/fcntl.h>
#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif