aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Piotr Sikora <piotrsikora@google.com>2016-04-12 09:45:12 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-04-12 13:59:05 +0000
commit6ebc7dbc141926882da81bebb4a75dd5370cda80 (patch)
treec800ef00c12b48423d03237617df3a538d1d685f /src
parentbccae25b39ec78df171ef4a1f672c380ea8b4600 (diff)
Fix build on FreeBSD (again).
Broken by commit a6ae3e7a, which added sysctlbyname() without required headers. While there, remove unused PATH_MAX2. -- MOS_MIGRATED_REVID=119619207
Diffstat (limited to 'src')
-rw-r--r--src/main/native/unix_jni_freebsd.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/native/unix_jni_freebsd.cc b/src/main/native/unix_jni_freebsd.cc
index 2ed1b2a130..5be1d4d645 100644
--- a/src/main/native/unix_jni_freebsd.cc
+++ b/src/main/native/unix_jni_freebsd.cc
@@ -22,11 +22,11 @@
#include <sys/extattr.h>
#include <sys/param.h>
#include <sys/stat.h>
+#include <sys/sysctl.h>
+#include <sys/types.h>
#include <string>
-const int PATH_MAX2 = PATH_MAX * 2;
-
using std::string;
// See unix_jni.h.