diff options
author | midipix <writeonce@midipix.org> | 2019-08-03 13:00:07 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-08-03 13:00:07 +0000 |
commit | 831753b17817e33d06c841be66e48be1b05dba54 (patch) | |
tree | b297ee20a3b8f00312e4edc16cda6c18763c0c2b /project | |
parent | 9b952c125ab54db9f217c90acf7790d8be63e11d (diff) | |
download | mmglue-831753b17817e33d06c841be66e48be1b05dba54.tar.bz2 mmglue-831753b17817e33d06c841be66e48be1b05dba54.tar.xz |
ioctl.h: struct winsize: support both common and arch-specific definition.
Diffstat (limited to 'project')
-rw-r--r-- | project/headers.mk | 6 |
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: |