Module Name: src Committed By: agc Date: Sun Nov 7 21:16:00 UTC 2010
Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: ssh2pgp.c Log Message: Fix a build problem on OpenBSD (we're not the only one who has trouble with their header files, it seems - insight from the tor project mailing list). And just so that the search engines can find it: > In file included from ssh2pgp.c:39: > /usr/include/arpa/inet.h:74: warning: 'struct in_addr' declared inside > parameter list > /usr/include/arpa/inet.h:74: warning: its scope is only this definition or > declaration, which is probably not what you want > /usr/include/arpa/inet.h:75: warning: 'struct in_addr' declared inside > parameter list > *** Error code 1 is fixed by including <netinet/in.h> before <arpa/inet.h> - found after a long-distance debug session with Anthony Bentley - thanks! To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 \ src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c diff -u src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c:1.18 src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c:1.19 --- src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c:1.18 Sun Nov 7 08:39:59 2010 +++ src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c Sun Nov 7 21:16:00 2010 @@ -36,6 +36,8 @@ #include <sys/stat.h> #include <sys/param.h> +#include <netinet/in.h> + #include <arpa/inet.h> #include <inttypes.h>