Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2014 03:04:16 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r275350 - stable/10/sys/contrib/dev/ral
Message-ID:  <201412010304.sB134GSE053049@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Mon Dec  1 03:04:15 2014
New Revision: 275350
URL: https://svnweb.freebsd.org/changeset/base/275350

Log:
  MFC r275003:
  Add missing headers needed by write().

Modified:
  stable/10/sys/contrib/dev/ral/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/contrib/dev/ral/Makefile
==============================================================================
--- stable/10/sys/contrib/dev/ral/Makefile	Mon Dec  1 03:01:01 2014	(r275349)
+++ stable/10/sys/contrib/dev/ral/Makefile	Mon Dec  1 03:04:15 2014	(r275350)
@@ -3,7 +3,8 @@
 FILES=	rt2561s.fw.uu rt2561.fw.uu rt2661.fw.uu rt2860.fw.uu
 
 rt2561s.fw.uu: microcode.h LICENSE
-	(echo '#include <stdint.h>'; \
+	(echo '#include <sys/types.h>'; \
+	 echo '#include <unistd.h>'; \
 	 cat microcode.h; \
 	 echo 'int main(void) { \
 	     write(1, rt2561s, sizeof(rt2561s)); return 0; \
@@ -11,7 +12,8 @@ rt2561s.fw.uu: microcode.h LICENSE
 	(sed 's/^/# /' LICENSE; ./build | uuencode rt2561s.fw) > ${.TARGET}
 
 rt2561.fw.uu: microcode.h LICENSE
-	(echo '#include <stdint.h>'; \
+	(echo '#include <sys/types.h>'; \
+	 echo '#include <unistd.h>'; \
 	 cat microcode.h; \
 	 echo 'int main(void) { \
 	     write(1, rt2561, sizeof(rt2561)); return 0; \
@@ -19,7 +21,8 @@ rt2561.fw.uu: microcode.h LICENSE
 	(sed 's/^/# /' LICENSE; ./build | uuencode rt2561.fw) > ${.TARGET}
 
 rt2661.fw.uu: microcode.h LICENSE
-	(echo '#include <stdint.h>'; \
+	(echo '#include <sys/types.h>'; \
+	 echo '#include <unistd.h>'; \
 	 cat microcode.h; \
 	 echo 'int main(void) { \
 	     write(1, rt2661, sizeof(rt2661)); return 0; \
@@ -27,7 +30,8 @@ rt2661.fw.uu: microcode.h LICENSE
 	(sed 's/^/# /' LICENSE; ./build | uuencode rt2661.fw) > ${.TARGET}
 
 rt2860.fw.uu: microcode.h LICENSE
-	(echo '#include <stdint.h>'; \
+	(echo '#include <sys/types.h>'; \
+	 echo '#include <unistd.h>'; \
 	 cat microcode.h; \
 	 echo 'int main(void) { \
 	     write(1, rt2860, sizeof(rt2860)); return 0; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412010304.sB134GSE053049>