blob: 81cd82bafae7e75544c8c3f0af7b54fce04396d6 [file] [log] [blame]
Denis Vlasenko8023d7d2006-11-24 15:06:28 +00001/*
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! */
Denis Vlasenko2ea630f2006-12-10 02:52:19 +000010#include <features.h>
Denis Vlasenko8023d7d2006-11-24 15:06:28 +000011#include <sys/sysmacros.h>
12
13#ifdef __GLIBC__
14/* At least glibc has horrendously large inline for this, so wrap it */
15/* uclibc people please check - do we need "&& !__UCLIBC__" above? */
Denis Vlasenko769d1e02007-01-22 23:04:27 +000016
17/* suppress gcc "no previous prototype" warning */
18unsigned long long bb_makedev(unsigned int major, unsigned int minor);
Denis Vlasenko8023d7d2006-11-24 15:06:28 +000019unsigned long long bb_makedev(unsigned int major, unsigned int minor)
20{
21 return makedev(major, minor);
22}
23#endif