Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Yhbkq-0002NQ-0E for mharc-grub-devel@gnu.org; Mon, 13 Apr 2015 06:38:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhbkn-0002NK-OU for grub-devel@gnu.org; Mon, 13 Apr 2015 06:38:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yhbkk-0001Bu-IC for grub-devel@gnu.org; Mon, 13 Apr 2015 06:38:09 -0400 Received: from nk11p03mm-asmtp002.mac.com ([17.158.232.237]:55016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhbkk-0001Bi-CH for grub-devel@gnu.org; Mon, 13 Apr 2015 06:38:06 -0400 Received: from [172.20.10.2] (32-44-71-217.dyn.internet.emt.ee [217.71.44.32]) by nk11p03mm-asmtp002.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NMQ0020IQV6F920@nk11p03mm-asmtp002.mac.com> for grub-devel@gnu.org; Mon, 13 Apr 2015 10:37:59 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-04-13_01:2015-04-10, 2015-04-12, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1504130091 From: Toomas Soome Content-type: multipart/mixed; boundary="Apple-Mail=_1E49A894-DE02-40D3-A3E7-8A61F9C0DCA8" Subject: [PATCH] grub-core/osdep/unix/geroot.c needs to include mkdev.h Message-id: Date: Mon, 13 Apr 2015 13:37:52 +0300 To: The development of GRUB 2 MIME-version: 1.0 (Mac OS X Mail 8.2 \(2098\)) X-Mailer: Apple Mail (2.2098) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 17.158.232.237 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2015 10:38:10 -0000 --Apple-Mail=_1E49A894-DE02-40D3-A3E7-8A61F9C0DCA8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii hi! Pushing some fixes for problems I have found while building grub2 in = illumos based system.=20 Solaris (like) systems need to include sys/mkdev.h for makedev() = function in grub-core/osdep/unix/getroot.c (fix for compiler warning). diff attached. rgds, toomas --Apple-Mail=_1E49A894-DE02-40D3-A3E7-8A61F9C0DCA8 Content-Disposition: attachment; filename=mkdev.diff Content-Type: application/octet-stream; name="mkdev.diff" Content-Transfer-Encoding: 7bit diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c index ccee7ce..b98b2df 100644 --- a/grub-core/osdep/unix/getroot.c +++ b/grub-core/osdep/unix/getroot.c @@ -57,6 +57,9 @@ #endif #include +#if defined(HAVE_SYS_MKDEV_H) +#include +#endif #if defined(HAVE_LIBZFS) && defined(HAVE_LIBNVPAIR) # include --Apple-Mail=_1E49A894-DE02-40D3-A3E7-8A61F9C0DCA8--