Fix some configuration dependencies, warnings, back up some previous changes that weren't really necessary
This commit is contained in:
parent
3e41db8de9
commit
cbc722503e
@ -6,6 +6,9 @@
|
||||
config INTERPRETERS_BAS
|
||||
bool "Basic Interpreter support"
|
||||
default n
|
||||
select SCHED_WAITPID
|
||||
select LIBC_EXECFUNCS
|
||||
depends on FS_READABLE
|
||||
---help---
|
||||
This is a Basic interpreter written by Michael Haardt
|
||||
|
||||
|
@ -41,6 +41,7 @@ USA. */
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* Comment out all this code if we are using the GNU C Library, and are not
|
||||
@ -206,15 +207,7 @@ static char *posixly_correct;
|
||||
#define my_index strchr
|
||||
#else
|
||||
|
||||
/* Avoid depending on library functions or files
|
||||
whose names are inconsistent. */
|
||||
|
||||
char *getenv ();
|
||||
|
||||
static char *
|
||||
my_index (str, chr)
|
||||
const char *str;
|
||||
int chr;
|
||||
static char *my_index(const char *str, int chr)
|
||||
{
|
||||
while (*str)
|
||||
{
|
||||
@ -698,6 +691,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
|
||||
else
|
||||
{
|
||||
if (opterr)
|
||||
{
|
||||
if (argv[optind - 1][1] == '-')
|
||||
/* --option */
|
||||
fprintf (stderr,
|
||||
@ -708,7 +702,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
|
||||
fprintf (stderr,
|
||||
_("%s: option `%c%s' doesn't allow an argument\n"),
|
||||
argv[0], argv[optind - 1][0], pfound->name);
|
||||
|
||||
}
|
||||
nextchar += strlen (nextchar);
|
||||
|
||||
optopt = pfound->val;
|
||||
|
@ -1,6 +1,4 @@
|
||||
/* #includes */ /*{{{C}}}*//*{{{*/
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_GETTEXT
|
||||
|
Loading…
Reference in New Issue
Block a user