mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-29 14:32:25 +01:00
Get rid of configure check for strtok()
[skip ci]
This commit is contained in:
parent
36cb2226cc
commit
078cfa88ea
6 changed files with 0 additions and 40 deletions
15
configure
vendored
15
configure
vendored
|
@ -5746,21 +5746,6 @@ $as_echo "#define NEED_STRTOKEN /**/" >>confdefs.h
|
|||
fi
|
||||
done
|
||||
|
||||
for ac_func in strtok
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "strtok" "ac_cv_func_strtok"
|
||||
if test "x$ac_cv_func_strtok" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_STRTOK 1
|
||||
_ACEOF
|
||||
|
||||
else
|
||||
|
||||
$as_echo "#define NEED_STRTOK /**/" >>confdefs.h
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
for ac_func in strerror
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
|
||||
|
|
|
@ -347,7 +347,6 @@ AC_CHECK_FUNCS([setproctitle],
|
|||
)
|
||||
|
||||
AC_CHECK_FUNCS(strtoken,,AC_DEFINE([NEED_STRTOKEN], [], [Define if you need the strtoken function.]))
|
||||
AC_CHECK_FUNCS(strtok,,AC_DEFINE([NEED_STRTOK], [], [Define if you need the strtok function.]))
|
||||
AC_CHECK_FUNCS(strerror,,AC_DEFINE([NEED_STRERROR], [], [Define if you need the strerror function.]))
|
||||
AC_CHECK_FUNCS(strtoul,,STRTOUL="strtoul.o")
|
||||
AC_CHECK_FUNCS(explicit_bzero,AC_DEFINE([HAVE_EXPLICIT_BZERO], [], [Define if you have explicit_bzero]))
|
||||
|
|
|
@ -95,9 +95,6 @@ extern int smycmp(const char *, const char *);
|
|||
extern int myncmp(const char *, const char *, int);
|
||||
#endif
|
||||
|
||||
#ifdef NEED_STRTOK
|
||||
extern char *strtok2(char *, char *);
|
||||
#endif
|
||||
#ifdef NEED_STRTOKEN
|
||||
extern char *strtoken(char **, char *, char *);
|
||||
#endif
|
||||
|
|
|
@ -106,9 +106,6 @@
|
|||
/* Define to 1 if you have the `strlncat' function. */
|
||||
#undef HAVE_STRLNCAT
|
||||
|
||||
/* Define to 1 if you have the `strtok' function. */
|
||||
#undef HAVE_STRTOK
|
||||
|
||||
/* Define to 1 if you have the `strtoken' function. */
|
||||
#undef HAVE_STRTOKEN
|
||||
|
||||
|
@ -145,9 +142,6 @@
|
|||
/* Define if you need the strerror function. */
|
||||
#undef NEED_STRERROR
|
||||
|
||||
/* Define if you need the strtok function. */
|
||||
#undef NEED_STRTOK
|
||||
|
||||
/* Define if you need the strtoken function. */
|
||||
#undef NEED_STRTOKEN
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#undef SYSSYSLOGH
|
||||
#define NOINDEX
|
||||
#define NEED_STRTOKEN
|
||||
#undef NEED_STRTOK
|
||||
#undef TIMES_2
|
||||
#undef GETRUSAGE_2
|
||||
#define CONFDIR "conf"
|
||||
|
|
|
@ -73,20 +73,6 @@ char *strtoken(char **save, char *str, char *fs)
|
|||
}
|
||||
#endif /* NEED_STRTOKEN */
|
||||
|
||||
#ifdef NEED_STRTOK
|
||||
/*
|
||||
** NOT encouraged to use!
|
||||
*/
|
||||
|
||||
char *strtok2(char *str, char *fs)
|
||||
{
|
||||
static char *pos;
|
||||
|
||||
return strtoken(&pos, str, fs);
|
||||
}
|
||||
|
||||
#endif /* NEED_STRTOK */
|
||||
|
||||
#ifdef NEED_STRERROR
|
||||
/*
|
||||
** strerror - return an appropriate system error string to a given errno
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue