diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-10-17 16:50:41 +0000 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-10-17 16:50:41 +0000 |
commit | 2baf54526b9a1c97e6af5328903363595aec4125 (patch) | |
tree | a2b4ad4267f305fefe9046e80b8daadc263e49c3 /platform/x11/os_x11.cpp | |
parent | 6e960c7d6bbf7481bae41ab0ebb39bc75619272a (diff) | |
download | redot-engine-2baf54526b9a1c97e6af5328903363595aec4125.tar.gz |
Fix BSD compile issues
Diffstat (limited to 'platform/x11/os_x11.cpp')
-rw-r--r-- | platform/x11/os_x11.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index bc18d0c1f0..48e2d8f81e 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -35,7 +35,11 @@ #include "servers/physics/physics_server_sw.h" #include "servers/visual/visual_server_raster.h" #include "servers/visual/visual_server_wrap_mt.h" + +#ifdef HAVE_MNTENT #include <mntent.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -2182,6 +2186,7 @@ static String get_mountpoint(const String &p_path) { return ""; } +#ifdef HAVE_MNTENT dev_t dev = s.st_dev; FILE *fd = setmntent("/proc/mounts", "r"); if (!fd) { @@ -2199,6 +2204,7 @@ static String get_mountpoint(const String &p_path) { } endmntent(fd); +#endif return ""; } |