svn add makedev.c. Forgot as usual... :(
[oweals/busybox.git] / libbb / makedev.c
1 /*
2  * Utility routines.
3  *
4  * Copyright (C) 2006 Denis Vlasenko
5  *
6  * Licensed under GPL version 2, see file LICENSE in this tarball for details.
7  */
8
9 /* We do not include libbb.h - #define makedev() is there! */
10 #include <sys/sysmacros.h>
11
12 #ifdef __GLIBC__
13 /* At least glibc has horrendously large inline for this, so wrap it */
14 /* uclibc people please check - do we need "&& !__UCLIBC__" above? */
15 unsigned long long bb_makedev(unsigned int major, unsigned int minor)
16 {
17         return makedev(major, minor);
18 }
19 #endif