summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
authorGravatar Robert Helling <helling@lmu.de>2013-09-17 11:18:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-17 07:58:17 -0400
commitfb0ecf6cd60fb75e5ce481587d31d6b4a475827b (patch)
tree1fd1d4e7ca9976d73ef86fba4ab6e60ad0e595fa /macos.c
parent25a2d6e6f9698383589a7399033eef4ffbc72d41 (diff)
downloadsubsurface-fb0ecf6cd60fb75e5ce481587d31d6b4a475827b.tar.gz
Two header files missing for Mac OSX
I needed to add to include files to make the latest version compile. Here is a patch. Signed-off-by: Robert C. Helling <helling@atdotde.de> Best Robert Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/macos.c b/macos.c
index f5f883e5c..e27a76007 100644
--- a/macos.c
+++ b/macos.c
@@ -1,6 +1,8 @@
/* macos.c */
/* implements Mac OS X specific functions */
#include <stdlib.h>
+#include <dirent.h>
+#include <fnmatch.h>
#include "dive.h"
#include "display.h"
#if USE_GTK_UI
@@ -286,7 +288,7 @@ int enumerate_devices (device_callback_t callback, void *userdata)
for (i = 0; patterns[i] != NULL; ++i) {
if (fnmatch (patterns[i], ep->d_name, 0) == 0) {
char filename[1024];
- int n = snprintf (filename, sizeof (filename), "%s/%s", d irname, ep->d_name);
+ int n = snprintf (filename, sizeof (filename), "%s/%s", dirname, ep->d_name);
if (n >= sizeof (filename)) {
closedir (dp);
return -1;