/usr/include/haveip6.h is in libowfat-dev 0.29-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1
#define LIBC_HAS_IP6