From 2c9791db555cc571eaedfa71444da05454bd052a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 6 Jun 2007 18:12:30 +0000 Subject: First steps towards supporting W32. This is mainly source code reorganization. Update gnulib. g10/ does currently not build. --- tools/gpgconf-comp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/gpgconf-comp.c') diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 580972aef..16fa3ad1a 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -33,8 +33,10 @@ #include #include #include +#ifndef HAVE_W32_SYSTEM #include #include +#endif /* For log_logv(), asctimestamp(), gnupg_get_time (). */ #define JNLIB_NEED_LOG_LOGV @@ -2574,6 +2576,9 @@ gc_component_change_options (int component, FILE *in) static int key_matches_user_or_group (char *user) { +#ifdef HAVE_W32_SYSTEM +# warning We need a real user and group lookup. +#else char *group; int n; @@ -2641,7 +2646,7 @@ key_matches_user_or_group (char *user) if (!strcmp (group, my_supgroups[n])) return 1; /* Found. */ } - +#endif return 0; /* No match. */ } -- cgit v1.2.3