projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release info.
[yaz-moved-to-github.git]
/
client
/
admin.c
diff --git
a/client/admin.c
b/client/admin.c
index
e20825c
..
b2579a1
100644
(file)
--- a/
client/admin.c
+++ b/
client/admin.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2001, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2001, Index Data
* See the file LICENSE for details.
*
- * $Id: admin.c,v 1.11 2001-11-13 23:00:42 adam Exp $
+ * $Id: admin.c,v 1.12 2002-01-17 21:04:43 adam Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-10,9
+10,7
@@
#include <time.h>
#include <assert.h>
#include <time.h>
#include <assert.h>
-#ifdef WIN32
-
-#else
+#if HAVE_FNMATCH_H
#include <dirent.h>
#include <fnmatch.h>
#include <sys/stat.h>
#include <dirent.h>
#include <fnmatch.h>
#include <sys/stat.h>
@@
-177,15
+175,7
@@
int cmd_adm_drop(char* arg)
N.B. That in this case, the import may contain instructions to delete records as well as new or updates
to existing records */
N.B. That in this case, the import may contain instructions to delete records as well as new or updates
to existing records */
-#ifdef WIN32
-int cmd_adm_import(char *arg)
-{
- printf ("not available on WIN32\n");
- return 0;
-}
-
-#else
-
+#if HAVE_FNMATCH_H
int cmd_adm_import(char *arg)
{
char type_str[20], dir_str[1024], pattern_str[1024];
int cmd_adm_import(char *arg)
{
char type_str[20], dir_str[1024], pattern_str[1024];
@@
-267,6
+257,12
@@
int cmd_adm_import(char *arg)
closedir(dir);
return 2;
}
closedir(dir);
return 2;
}
+#else
+int cmd_adm_import(char *arg)
+{
+ printf ("not available on WIN32\n");
+ return 0;
+}
#endif
int cmd_adm_import2(char* arg)
#endif
int cmd_adm_import2(char* arg)