[前][次][番号順一覧][スレッド一覧]

ruby-changes:44476

From: nobu <ko1@a...>
Date: Thu, 3 Nov 2016 15:02:20 +0900 (JST)
Subject: [ruby-changes:44476] nobu:r56549 (trunk): file.c: include sys/sysmacros.h

nobu	2016-11-03 15:02:16 +0900 (Thu, 03 Nov 2016)

  New Revision: 56549

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56549

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/file.c
Index: file.c
===================================================================
--- file.c	(revision 56548)
+++ file.c	(revision 56549)
@@ -63,6 +63,10 @@ int flock(int, int); https://github.com/ruby/ruby/blob/trunk/file.c#L63
 #include <pwd.h>
 #endif
 
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56548)
+++ ChangeLog	(revision 56549)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Nov  3 15:01:29 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* file.c: include sys/sysmacros.h for ArchLinux which deprecated
+	  use of major() and minor() in sys/types.h.
+
 Wed Nov  2 08:45:49 2016  Dmitry Gritsay  <unseductable@g...>
 
 	* doc/extension.rdoc: set ANYARGS as arguments for func1 and func2.
Index: configure.in
===================================================================
--- configure.in	(revision 56548)
+++ configure.in	(revision 56549)
@@ -1322,6 +1322,7 @@ AC_CHECK_HEADERS(sys/select.h) https://github.com/ruby/ruby/blob/trunk/configure.in#L1322
 AC_CHECK_HEADERS(sys/sendfile.h)
 AC_CHECK_HEADERS(sys/socket.h)
 AC_CHECK_HEADERS(sys/syscall.h)
+AC_CHECK_HEADERS(sys/sysmacros.h)
 AC_CHECK_HEADERS(sys/time.h)
 AC_CHECK_HEADERS(sys/times.h)
 AC_CHECK_HEADERS(sys/uio.h)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]