file.c: include sys/sysmacros.h

* file.c: include sys/sysmacros.h for ArchLinux which deprecated
  use of major() and minor() in sys/types.h.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-11-03 06:02:16 +00:00
parent f0baa12267
commit 6c7024f6f4
3 changed files with 10 additions and 0 deletions

4
file.c
View file

@ -63,6 +63,10 @@ int flock(int, int);
#include <pwd.h>
#endif
#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>