mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
25a2d6e6f9
commit
fb0ecf6cd6
1 changed files with 3 additions and 1 deletions
4
macos.c
4
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue