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