aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/getopt.h
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2001-11-13 17:56:06 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:54 +0000
commitf73dda092b33638d2d5e9c35375f687a607b5403 (patch)
treef21584e70a444d6a1ecba0fb5e2cf79e8cce91db /builtins/getopt.h
parent28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff)
downloadandroid_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz
android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.bz2
android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.zip
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'builtins/getopt.h')
-rw-r--r--builtins/getopt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/builtins/getopt.h b/builtins/getopt.h
index 997bfd7..7a4afb1 100644
--- a/builtins/getopt.h
+++ b/builtins/getopt.h
@@ -20,6 +20,8 @@
#ifndef _SH_GETOPT_H
#define _SH_GETOPT_H 1
+#include "stdc.h"
+
/* For communication from `getopt' to the caller.
When `getopt' finds an option that takes an argument,
the argument value is returned here.
@@ -54,7 +56,7 @@ extern int sh_optopt;
/* Set to 1 when an unrecognized option is encountered. */
extern int sh_badopt;
-extern int sh_getopt ();
-extern void sh_getopt_restore_state ();
+extern int sh_getopt __P((int, char *const *, const char *));
+extern void sh_getopt_restore_state __P((char **));
#endif /* _SH_GETOPT_H */