Merge branch 'Teaman-ND' into Teaman-RT
[tomato.git] / release / src / router / busybox / libbb / makedev.c
blobcf59e616b8d286676af648095e7716be0a39009b
1 /*
2 * Utility routines.
4 * Copyright (C) 2006 Denys Vlasenko
6 * Licensed under GPLv2, see file LICENSE in this source tree.
7 */
9 /* We do not include libbb.h - #define makedev() is there! */
10 #include "platform.h"
11 #include <features.h>
12 #include <sys/sysmacros.h>
14 #ifdef __GLIBC__
15 /* At least glibc has horrendously large inline for this, so wrap it */
16 /* uclibc people please check - do we need "&& !__UCLIBC__" above? */
18 /* suppress gcc "no previous prototype" warning */
19 unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned int minor);
20 unsigned long long FAST_FUNC bb_makedev(unsigned int major, unsigned int minor)
22 return makedev(major, minor);
24 #endif