]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sync.c
Added missing includes to libucw API.
[libucw.git] / lib / sync.c
index 76bd590129bf50d07618d583291d8b99a727316b..1b3a0d1571f5f043aa246ac89a2efb2f0af85991 100644 (file)
@@ -1,7 +1,7 @@
 /*
- *     Sherlock Library -- Syncing Directories
+ *     UCW Library -- Syncing Directories
  *
- *     (c) 2004 Martin Mares <mj@ucw.cz>
+ *     (c) 2004--2005 Martin Mares <mj@ucw.cz>
  */
 
 #include "lib/lib.h"
 void
 sync_dir(byte *name)
 {
-  int fd = open(name, O_RDONLY | O_DIRECTORY);
+  int fd = open(name, O_RDONLY
+#ifdef CONFIG_LINUX
+               | O_DIRECTORY
+#endif
+);
   if (fd < 0)
     goto err;
   int err = fsync(fd);