diff options
author | Bjørn Mork <bjorn@mork.no> | 2015-05-15 10:20:47 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2015-05-15 10:20:47 +0200 |
commit | 73b16af8feec390afbabd9356d6e5e83c0390838 (patch) | |
tree | 3730020ba2f9caeb9d7815a975af51830b51ce11 /libbb/makedev.c |
busybox: imported from http://www.busybox.net/downloads/busybox-1.13.3.tar.bz2busybox-1.13.3
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'libbb/makedev.c')
-rw-r--r-- | libbb/makedev.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libbb/makedev.c b/libbb/makedev.c new file mode 100644 index 0000000..ca71fdb --- /dev/null +++ b/libbb/makedev.c @@ -0,0 +1,24 @@ +/* + * Utility routines. + * + * Copyright (C) 2006 Denys Vlasenko + * + * Licensed under GPL version 2, see file LICENSE in this tarball for details. + */ + +/* We do not include libbb.h - #define makedev() is there! */ +#include "platform.h" +#include <features.h> +#include <sys/sysmacros.h> + +#ifdef __GLIBC__ +/* At least glibc has horrendously large inline for this, so wrap it */ +/* uclibc people please check - do we need "&& !__UCLIBC__" above? */ + +/* suppress gcc "no previous prototype" warning */ +unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned int minor); +unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned int minor) +{ + return makedev(major, minor); +} +#endif |