First release
ernst.molitor at uni-bonn.de
ernst.molitor at uni-bonn.de
Sat Dec 20 19:51:11 CET 1997
Dear Werner Koch,
thank you very much for creating g10-0.0.0 and making it available
publicly - this is a great and most useful project.
Below, please find two very minor changes to allow compilation under
the "future" Linux C library, GLIBC-2.x (aka libc-6). With those
patches, g10 compiled like a charm on my Linux-2.1.73 - GLIBC
2.1-ss971201 box.
Best regards,
Ernst
--- snip, snip ---
diff --recursive -c g10-0.0.0/g10/openfile.c g10-0.0.0-p1/g10/openfile.c
*** g10-0.0.0/g10/openfile.c Sat Dec 20 18:16:17 1997
--- g10-0.0.0-p1/g10/openfile.c Sat Dec 20 20:44:04 1997
***************
*** 89,95 ****
--- 89,99 ----
if( !iname && !opt.outfile ) {
if( !(a = iobuf_create(NULL)) )
+ #if __GLIBC__ >= 2
+ log_error("can't open [stdout]: %s\n", strerror(errno()) );
+ #else
log_error("can't open [stdout]: %s\n", strerror(errno) );
+ #endif
else if( opt.verbose )
log_info("writing to stdout\n");
}
***************
*** 106,112 ****
--- 110,120 ----
}
if( !(rc=overwrite_filep( name )) ) {
if( !(a = iobuf_create( name )) )
+ #if __GLIBC__ >=2
+ log_error("can't create %s: %s\n", name, strerror(errno()) );
+ #else
log_error("can't create %s: %s\n", name, strerror(errno) );
+ #endif
else if( opt.verbose )
log_info("writing to '%s'\n", name );
}
diff --recursive -c g10-0.0.0/include/types.h g10-0.0.0-p1/include/types.h
*** g10-0.0.0/include/types.h Thu Dec 18 11:46:28 1997
--- g10-0.0.0-p1/include/types.h Sat Dec 20 20:45:09 1997
***************
*** 23,29 ****
--- 23,33 ----
#ifdef __linux__
/* FIXME: add stuff to configure to detect for typedefs */
+ #if __GLIBC__ >=2
+ #include <sys/types.h>
+ #else
#include <linux/types.h>
+ #endif
#define HAVE_ULONG_TYPEDEF
#define HAVE_USHORT_TYPEDEF
#endif
--- snip, snip ---
More information about the Gnupg-devel
mailing list