# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../musl/pkg_patch/busybox/0001-busybox-musl-no-useconds_t.patch # Copyright (C) 2012 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- SDE-COPYRIGHT-NOTE-END --- --- a/include/libbb.h 2012-11-25 02:58:40.498568341 +0100 +++ b/include/libbb.h 2012-11-25 02:59:13.719292446 +0100 @@ -1898,7 +1898,7 @@ #define isprint_asciionly(a) ((unsigned)((a) - 0x20) <= 0x7e - 0x20) #define usleep(usec) bb_usleep(usec) -static ALWAYS_INLINE int bb_usleep(useconds_t usec) +static ALWAYS_INLINE int bb_usleep(suseconds_t usec) { struct timespec t = { usec/1000000, (usec%1000000)*1000L }; return nanosleep(&t, NULL);