summaryrefslogtreecommitdiff
path: root/lib/userspec.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-01-10 21:06:49 +0000
committerBruno Haible <bruno@clisp.org>2003-01-10 21:06:49 +0000
commit48dbf2c191cd60b64354849d8e0a8fe4a7d613f2 (patch)
tree794f2730aefce181f1e950aa67e6c70fe84eaeb7 /lib/userspec.c
parent5d9996a995e9f182b6d662cbe2ecdcb1aa4551d4 (diff)
downloadgnulib-48dbf2c191cd60b64354849d8e0a8fe4a7d613f2.tar.gz
Make it possibly to simply write: #include <alloca.h>.
Diffstat (limited to 'lib/userspec.c')
-rw-r--r--lib/userspec.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/userspec.c b/lib/userspec.c
index 9def456adb..88b43a1310 100644
--- a/lib/userspec.c
+++ b/lib/userspec.c
@@ -1,5 +1,5 @@
/* userspec.c -- Parse a user and group string.
- Copyright (C) 1989-1992, 1997, 1998, 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1989-1992, 1997-1998, 2000, 2002-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,19 +21,7 @@
# include <config.h>
#endif
-#ifdef __GNUC__
-# define alloca __builtin_alloca
-#else
-# if HAVE_ALLOCA_H
-# include <alloca.h>
-# else
-# ifdef _AIX
- # pragma alloca
-# else
-char *alloca ();
-# endif
-# endif
-#endif
+#include <alloca.h>
#include <stdio.h>
#include <sys/types.h>