Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/libbb/makedev.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/libbb/makedev.c
r2725 r3232 9 9 /* We do not include libbb.h - #define makedev() is there! */ 10 10 #include "platform.h" 11 #include <features.h> 12 #include <sys/sysmacros.h> 11 12 /* Different Unixes want different headers for makedev */ 13 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ 14 || defined(__APPLE__) 15 # include <sys/types.h> 16 #else 17 # include <features.h> 18 # include <sys/sysmacros.h> 19 #endif 13 20 14 21 #ifdef __GLIBC__ 15 /* At least glibc has horrendously large inline for this, so wrap it */22 /* At least glibc has horrendously large inline for this, so wrap it. */ 16 23 /* uclibc people please check - do we need "&& !__UCLIBC__" above? */ 17 24 18 /* suppress gcc "no previous prototype" warning */19 unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned intminor);20 unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned intminor)25 /* Suppress gcc "no previous prototype" warning */ 26 unsigned long long FAST_FUNC bb_makedev(unsigned major, unsigned minor); 27 unsigned long long FAST_FUNC bb_makedev(unsigned major, unsigned minor) 21 28 { 22 29 return makedev(major, minor);
Note:
See TracChangeset
for help on using the changeset viewer.