[vlc-commits] Fix MacOS build

Rémi Denis-Courmont git at videolan.org
Tue Jan 24 20:05:46 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 24 21:05:22 2012 +0200| [f6587cd61c91fbc3ec8fc055ee907df17bd30b2a] | committer: Rémi Denis-Courmont

Fix MacOS build

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6587cd61c91fbc3ec8fc055ee907df17bd30b2a
---

 src/posix/darwin_dirs.c     |    4 ++++
 src/posix/darwin_specific.c |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/posix/darwin_dirs.c b/src/posix/darwin_dirs.c
index b809449..6fc5d87 100644
--- a/src/posix/darwin_dirs.c
+++ b/src/posix/darwin_dirs.c
@@ -39,6 +39,10 @@
 #include <dlfcn.h>
 #include <mach-o/dyld.h>
 
+#ifndef MAXPATHLEN
+# define MAXPATHLEN 1024
+#endif
+
 static char *configdir = NULL;
 
 static pthread_once_t once = PTHREAD_ONCE_INIT;
diff --git a/src/posix/darwin_specific.c b/src/posix/darwin_specific.c
index 50f20be..ce11a88 100644
--- a/src/posix/darwin_specific.c
+++ b/src/posix/darwin_specific.c
@@ -37,10 +37,6 @@
 #   include <locale.h>
 #endif
 
-#ifndef MAXPATHLEN
-# define MAXPATHLEN 1024
-#endif
-
 /*****************************************************************************
  * system_Init: fill in program path & retrieve language
  *****************************************************************************/



More information about the vlc-commits mailing list