diff options
| author | Matt Whitlock <busybox@mattwhitlock.name> | 2015-05-03 18:59:50 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-05-03 19:33:32 +0200 |
| commit | 778efe37eed03de6e194a746925f1160181ff587 (patch) | |
| tree | d320bacbddf86e7a14cb3c29c194affea4487604 /include | |
| parent | f23e3ec529c300712d529fa805d2e1f254bf1884 (diff) | |
| download | busybox-w32-778efe37eed03de6e194a746925f1160181ff587.tar.gz busybox-w32-778efe37eed03de6e194a746925f1160181ff587.tar.bz2 busybox-w32-778efe37eed03de6e194a746925f1160181ff587.zip | |
Conditionalize Bionic workarounds on __ANDROID_API__
Signed-off-by: Matt Whitlock <busybox@mattwhitlock.name>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/platform.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/platform.h b/include/platform.h index 8896a6b99..1706b1847 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -480,10 +480,16 @@ typedef unsigned smalluint; | |||
| 480 | #endif | 480 | #endif |
| 481 | 481 | ||
| 482 | #if defined(ANDROID) || defined(__ANDROID__) | 482 | #if defined(ANDROID) || defined(__ANDROID__) |
| 483 | # undef HAVE_DPRINTF | 483 | # if __ANDROID_API__ < 8 |
| 484 | # undef HAVE_TTYNAME_R | 484 | # undef HAVE_DPRINTF |
| 485 | # undef HAVE_GETLINE | 485 | # else |
| 486 | # undef HAVE_STPCPY | 486 | # define dprintf fdprintf |
| 487 | # endif | ||
| 488 | # if __ANDROID_API__ < 21 | ||
| 489 | # undef HAVE_TTYNAME_R | ||
| 490 | # undef HAVE_GETLINE | ||
| 491 | # undef HAVE_STPCPY | ||
| 492 | # endif | ||
| 487 | # undef HAVE_MEMPCPY | 493 | # undef HAVE_MEMPCPY |
| 488 | # undef HAVE_STRCHRNUL | 494 | # undef HAVE_STRCHRNUL |
| 489 | # undef HAVE_STRVERSCMP | 495 | # undef HAVE_STRVERSCMP |
