diff options
Diffstat (limited to 'awklib/eg/lib/grcat.c')
-rw-r--r-- | awklib/eg/lib/grcat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/awklib/eg/lib/grcat.c b/awklib/eg/lib/grcat.c index d34ddd56..802aa639 100644 --- a/awklib/eg/lib/grcat.c +++ b/awklib/eg/lib/grcat.c @@ -8,6 +8,14 @@ * Public Domain */ +/* For OS/2, do nothing. */ +#if HAVE_CONFIG_H +#include <config.h> +#endif + +#ifndef HAVE_GETPGRENT +int main() { exit(0); } +#else #include <stdio.h> #include <grp.h> @@ -32,3 +40,4 @@ char **argv; endgrent(); exit(0); } +#endif /* HAVE_GETPGRENT */ |