Most of AIX support.

This commit is contained in:
Nicholas Marriott
2009-03-31 21:22:10 +00:00
parent 6c27f1c335
commit 792b28ec3e
6 changed files with 24 additions and 10 deletions

View File

@ -56,7 +56,6 @@ struct option {
int val;
};
__BEGIN_DECLS
int getopt_long(int, char * const *, const char *,
const struct option *, int *);
int getopt_long_only(int, char * const *, const char *,
@ -73,6 +72,5 @@ extern int optopt;
extern int optreset;
extern char *suboptarg; /* getsubopt(3) external variable */
#endif
__END_DECLS
#endif /* !_GETOPT_H_ */

View File

@ -49,13 +49,14 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <err.h>
/* #include <err.h> */
#include <errno.h>
/* #include <getopt.h> */
#include <stdlib.h>
#include <string.h>
#include "tmux.h"
#define warnx(a, b) /* XXX */
#define REPLACE_GETOPT /* use this getopt as the system getopt(3) */

View File

@ -73,7 +73,6 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
char *vis(char *, int, int, int);
int strvis(char *, const char *, int);
int strnvis(char *, const char *, size_t, int);
@ -82,6 +81,4 @@ int strunvis(char *, const char *);
int unvis(char *, char, int *, int);
ssize_t strnunvis(char *, const char *, size_t);
__END_DECLS
#endif /* !_VIS_H_ */