4 * Copyright (C) 2006 Denys Vlasenko
6 * Licensed under GPLv2, see file LICENSE in this source tree.
9 /* We do not include libbb.h - #define makedev() is there! */
12 /* Different Unixes want different headers for makedev */
13 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
15 # include <sys/types.h>
17 # include <features.h>
18 # include <sys/sysmacros.h>
22 /* At least glibc has horrendously large inline for this, so wrap it. */
23 /* uclibc people please check - do we need "&& !__UCLIBC__" above? */
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)
29 return makedev(major, minor);