source: MondoRescue/branches/3.2/mindi-busybox/libbb/makedev.c@ 3232

Last change on this file since 3232 was 3232, checked in by Bruno Cornec, 10 years ago
  • Update mindi-busybox to 1.21.1
  • Property svn:eol-style set to native
File size: 863 bytes
RevLine 
[1765]1/*
2 * Utility routines.
3 *
[2725]4 * Copyright (C) 2006 Denys Vlasenko
[1765]5 *
[2725]6 * Licensed under GPLv2, see file LICENSE in this source tree.
[1765]7 */
8
9/* We do not include libbb.h - #define makedev() is there! */
[2725]10#include "platform.h"
[1765]11
[3232]12/* Different Unixes want different headers for makedev */
13#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
14 || defined(__APPLE__)
15# include <sys/types.h>
16#else
17# include <features.h>
18# include <sys/sysmacros.h>
19#endif
20
[1765]21#ifdef __GLIBC__
[3232]22/* At least glibc has horrendously large inline for this, so wrap it. */
[1765]23/* uclibc people please check - do we need "&& !__UCLIBC__" above? */
24
[3232]25/* Suppress gcc "no previous prototype" warning */
26unsigned long long FAST_FUNC bb_makedev(unsigned major, unsigned minor);
27unsigned long long FAST_FUNC bb_makedev(unsigned major, unsigned minor)
[1765]28{
29 return makedev(major, minor);
30}
31#endif
Note: See TracBrowser for help on using the repository browser.