Hi,
I'm maintainer of FreeBSD port (sysutils/squashfs-tools
), and would like to present couple of FreeBSD (or non-GNU/Linux) specific diffs for inclusion in upstream.
patch-action.c: strdupa() is GNU specific macro. I've added a replacement, for where it's not available.
patch-unsquashfs.c
:
sys/sysinfo.h
is only available on GNU/Linux.sysctl()
is present in sys/sysctl.hpatch-squashfs-tools_pseudo.c: sys/stat.h
is needed to prevent errors like:
pseudo.c:435:11: error: use of undeclared identifier 'S_IFBLK'
mode |= S_IFBLK;
^
pseudo.c:438:11: error: use of undeclared identifier 'S_IFCHR'
mode |= S_IFCHR;
^
pseudo.c:441:11: error: use of undeclared identifier 'S_IFDIR'
mode |= S_IFDIR;
^
pseudo.c:444:11: error: use of undeclared identifier 'S_IFREG'
mode |= S_IFREG;
^
Let me know if you've any questions.
Thanks in advance