Menu

#58 Upstr

v1.0 (example)
open
nobody
freebsd (1)
5
2015-02-06
2015-02-06
No

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.

  1. patch-action.c: strdupa() is GNU specific macro. I've added a replacement, for where it's not available.

  2. patch-unsquashfs.c:

    • sys/sysinfo.h is only available on GNU/Linux.
    • sysctl() is present in sys/sysctl.h
  3. patch-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

3 Attachments

Discussion


Log in to post a comment.