mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Use AC_HEADER_MAJOR
Instead of checking for sys/mkdev.h headerfile, there is the AC_HEADER_MAJOR helper for how to get major(), minor(), makedev(). https://bugzilla.gnome.org/show_bug.cgi?id=712314
This commit is contained in:
committed by
Colin Walters
parent
3c2d52cc96
commit
efb1701bf3
@@ -29,13 +29,16 @@
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef HAVE_SYS_MKDEV_H
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if MAJOR_IN_MKDEV
|
||||
#include <sys/mkdev.h>
|
||||
#elif MAJOR_IN_SYSMACROS
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#include "gdbusutils.h"
|
||||
#include "gdbusmessage.h"
|
||||
#include "gdbuserror.h"
|
||||
|
Reference in New Issue
Block a user