From 831753b17817e33d06c841be66e48be1b05dba54 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 3 Aug 2019 13:00:07 +0000 Subject: ioctl.h: struct winsize: support both common and arch-specific definition. --- project/headers.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'project') 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: -- cgit v1.2.3