summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/headers.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/project/headers.mk b/project/headers.mk
index 201188e..af1f57c 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -105,6 +105,12 @@ build/headers.tag: $(ARCH_HEADERS)
touch $@
headers.tag: build/headers.tag $(ARCH_GEN_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
+ mv build/include/bits/ioctl.h.tmp build/include/bits/ioctl.h
touch $@
clean-headers: