aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h
index c272fbb05..395ec5d45 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -28,6 +28,7 @@
28#define HAVE_PTSNAME_R 1 28#define HAVE_PTSNAME_R 1
29#define HAVE_SETBIT 1 29#define HAVE_SETBIT 1
30#define HAVE_SIGHANDLER_T 1 30#define HAVE_SIGHANDLER_T 1
31#define HAVE_STPCPY 1
31#define HAVE_STRCASESTR 1 32#define HAVE_STRCASESTR 1
32#define HAVE_STRCHRNUL 1 33#define HAVE_STRCHRNUL 1
33#define HAVE_STRSEP 1 34#define HAVE_STRSEP 1
@@ -374,13 +375,16 @@ typedef unsigned smalluint;
374# define ADJ_TICK MOD_CLKB 375# define ADJ_TICK MOD_CLKB
375# endif 376# endif
376 377
378# undef HAVE_STPCPY
379
377#else 380#else
378 381
379# define bb_setpgrp() setpgrp() 382# define bb_setpgrp() setpgrp()
380 383
381#endif 384#endif
382 385
383#if defined(__GLIBC__) 386#include <unistd.h>
387#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L) || defined(__GLIBC__)
384# define fdprintf dprintf 388# define fdprintf dprintf
385#endif 389#endif
386 390
@@ -393,6 +397,7 @@ typedef unsigned smalluint;
393# undef HAVE_MEMRCHR 397# undef HAVE_MEMRCHR
394# undef HAVE_MKDTEMP 398# undef HAVE_MKDTEMP
395# undef HAVE_SETBIT 399# undef HAVE_SETBIT
400# undef HAVE_STPCPY
396# undef HAVE_STRCASESTR 401# undef HAVE_STRCASESTR
397# undef HAVE_STRCHRNUL 402# undef HAVE_STRCHRNUL
398# undef HAVE_STRSIGNAL 403# undef HAVE_STRSIGNAL
@@ -406,6 +411,7 @@ typedef unsigned smalluint;
406# undef HAVE_MEMRCHR 411# undef HAVE_MEMRCHR
407# undef HAVE_MKDTEMP 412# undef HAVE_MKDTEMP
408# undef HAVE_SETBIT 413# undef HAVE_SETBIT
414# undef HAVE_STPCPY
409# undef HAVE_STRCASESTR 415# undef HAVE_STRCASESTR
410# undef HAVE_STRCHRNUL 416# undef HAVE_STRCHRNUL
411# undef HAVE_STRSEP 417# undef HAVE_STRSEP
@@ -444,6 +450,10 @@ extern char *mkdtemp(char *template) FAST_FUNC;
444typedef void (*sighandler_t)(int); 450typedef void (*sighandler_t)(int);
445#endif 451#endif
446 452
453#ifndef HAVE_STPCPY
454extern char *stpcpy(char *p, const char *to_add) FAST_FUNC;
455#endif
456
447#ifndef HAVE_STRCASESTR 457#ifndef HAVE_STRCASESTR
448extern char *strcasestr(const char *s, const char *pattern) FAST_FUNC; 458extern char *strcasestr(const char *s, const char *pattern) FAST_FUNC;
449#endif 459#endif