summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/headers.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/project/headers.mk b/project/headers.mk
index db8aab0..114b546 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -110,9 +110,10 @@ headers.tag: build/headers.tag $(ARCH_GEN_H)
> build/include/bits/socket.h
grep -v '^@@@' build/include/bits/ioctl.h \
> build/include/bits/ioctl.h.tmp
- grep 'struct winsize' $(SOURCE_DIR)/include/sys/ioctl.h \
- || sed 's/^@@@//g' build/include/bits/ioctl.h \
- > build/include/bits/ioctl.h.tmp
+ grep 'struct winsize' $(SOURCE_DIR)/include/sys/ioctl.h \
+ || grep '^STRUCT winsize' $(SOURCE_DIR)/include/alltypes.h.in \
+ || sed 's/^@@@//g' build/include/bits/ioctl.h \
+ > build/include/bits/ioctl.h.tmp
mv build/include/bits/ioctl.h.tmp build/include/bits/ioctl.h
touch $@