summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2014-12-01 03:04:15 +0000
committerkevlo <kevlo@FreeBSD.org>2014-12-01 03:04:15 +0000
commitaaab2e97e4d5c86294522cb6934b2067d2093831 (patch)
tree4887920cb44e70cd5043d9a32fb2c18e3870bce6 /sys/contrib
parenta97617028aef0adbf0f98680284321d0157f5291 (diff)
downloadFreeBSD-src-aaab2e97e4d5c86294522cb6934b2067d2093831.zip
FreeBSD-src-aaab2e97e4d5c86294522cb6934b2067d2093831.tar.gz
MFC r275003:
Add missing headers needed by write().
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/ral/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/contrib/dev/ral/Makefile b/sys/contrib/dev/ral/Makefile
index 0e74d3a..6ef8a9a 100644
--- a/sys/contrib/dev/ral/Makefile
+++ b/sys/contrib/dev/ral/Makefile
@@ -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; \
OpenPOWER on IntegriCloud