List Archive

Thread

Thread Index

Message

From: Benjamin Gilbert <bgilbert%backtick.net@localhost>
To: libzip-discuss%nih.at@localhost
Subject: MinGW-w64 build failure with 1.3.1 and 1.3.2
Date: Mon, 20 Nov 2017 06:53:31 -0500

Hi,

libzip 1.3.1 and 1.3.2 fail to build with MinGW-w64:

nonrandomopentest.c: In function 'main':
nonrandomopentest.c:51:39: error: macro "open" requires 3 arguments, but only 2 given
     fd = open("/dev/urandom", O_RDONLY);
                                       ^
nonrandomopentest.c:51:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
     fd = open("/dev/urandom", O_RDONLY);
        ^
make[2]: *** [Makefile:947: nonrandomopentest.o] Error 1

--Benjamin Gilbert

Made by MHonArc.