diff options
author | Brian C. Lane <bcl@redhat.com> | 2021-01-28 13:09:17 -0800 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2021-01-28 13:09:33 -0800 |
commit | b8e1b58a0a1242b812b6451f89b6a72a1ec9c2ee (patch) | |
tree | 9ee3e8d6e6bd4eb55eec7403c525b78bb8f7e63b /include/parted | |
parent | 040003570a9db560a405693433363612bb3b6859 (diff) | |
download | parted-b8e1b58a0a1242b812b6451f89b6a72a1ec9c2ee.tar.gz |
libparted: Add includes for gnulib redefining free
gnulib redefines free using #define, causing problems with the
pt-common.h file. Work around that by including standard header files as
suggested by gnulib maintainer:
https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00315.html
Diffstat (limited to 'include/parted')
-rw-r--r-- | include/parted/disk.in.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/parted/disk.in.h b/include/parted/disk.in.h index 6f42145..7ca6453 100644 --- a/include/parted/disk.in.h +++ b/include/parted/disk.in.h @@ -27,6 +27,12 @@ #ifndef PED_DISK_H_INCLUDED #define PED_DISK_H_INCLUDED +/* Include these to work around gnulib redefining free, read, etc. which causes problems + * with pt-common.h + */ +#include <stdlib.h> +#include <unistd.h> + /** * Disk flags */ |