cannot use sing4j with linux
Brought to you by:
grzegok
Using linux, I have apparently compile the sign4j.c myself, right?
How can I do that?
I already replaced io.h with x86_64-linux-gnu/sys/io.h
Now:
$ gcc sign4j.c sign4j.c: In function ‘main’: sign4j.c:92:36: error: ‘O_BINARY’ undeclared (first use in this function) if ((fd = open (inf, O_RDONLY | O_BINARY)) < 0) ^ sign4j.c:92:36: note: each undeclared identifier is reported only once for each function it appears in sign4j.c:113:52: error: ‘_O_SHORT_LIVED’ undeclared (first use in this function) if ((td = open (TEST_FILE_NAME, O_CREAT | _O_SHORT_LIVED | O_WRONLY | O_BINARY, _S_IREAD | _S_IWRITE)) < 0) ^ sign4j.c:113:90: error: ‘_S_IREAD’ undeclared (first use in this function) if ((td = open (TEST_FILE_NAME, O_CREAT | _O_SHORT_LIVED | O_WRONLY | O_BINARY, _S_IREAD | _S_IWRITE)) < 0) ^ sign4j.c:113:101: error: ‘_S_IWRITE’ undeclared (first use in this function) if ((td = open (TEST_FILE_NAME, O_CREAT | _O_SHORT_LIVED | O_WRONLY | O_BINARY, _S_IREAD | _S_IWRITE)) < 0)
One of the users offered a solution that was merged, you can get the newest source code from git and try it out.