]> git.sesse.net Git - vlc/blobdiff - include/vlc_fixups.h
Remove modules/misc/dummy/
[vlc] / include / vlc_fixups.h
index 929ad07a1cdf41f2d61b52d863b536634e0091d6..a223384b8d4555aab2d0d6bda1620f488ea87eb0 100644 (file)
@@ -50,8 +50,7 @@ typedef struct
 
 #if !defined (HAVE_STRLCPY) || \
     !defined (HAVE_STRNDUP) || \
-    !defined (HAVE_STRNLEN) || \
-    !defined (HAVE_GETCWD)
+    !defined (HAVE_STRNLEN)
 # include <stddef.h> /* size_t */
 #endif
 
@@ -173,14 +172,14 @@ struct tm *localtime_r (const time_t *, struct tm *);
 #endif
 
 /* unistd.h */
-#ifndef HAVE_GETCWD
-char *getcwd (char *buf, size_t size);
-#endif
-
 #ifndef HAVE_GETPID
 pid_t getpid (void);
 #endif
 
+#ifndef HAVE_FSYNC
+int fsync (int fd);
+#endif
+
 /* dirent.h */
 #ifndef HAVE_DIRFD
 #ifdef __APPLE__
@@ -279,12 +278,15 @@ int vlc_poll (struct pollfd *, unsigned, int);
 #endif
 
 #ifndef HAVE_IF_NAMEINDEX
+#include <errno.h>
 struct if_nameindex
 {
     unsigned if_index;
     char    *if_name;
 };
-# define if_nametoindex(name)   atoi(name)
+# ifndef HAVE_IF_NAMETOINDEX
+#  define if_nametoindex(name)   atoi(name)
+# endif
 # define if_nameindex()         (errno = ENOBUFS, NULL)
 # define if_freenameindex(list) (void)0
 #endif