very minor patch to compile g10-0.2.3 on Linux-GNU-GLIBC-2.1

ernst.molitor at uni-bonn.de ernst.molitor at uni-bonn.de
Mon Feb 9 21:37:02 CET 1998


Dear G10 developers, 

in order to compile G10-0.2.3 on my Linux box (with EGCS and the
current snapshot of the GNU C library, GLIBC-2.1, up and running), 
I had to introduce four very minor patches that are needed since
locale.h has to be included on this system; I'm including context
diffs below.

Thank you very much.

Regards, 

Ernst

--- snip, snip ---
*** g10-0.2.3/tools/mpicalc.c~	Mon Feb  9 13:13:06 1998
--- g10-0.2.3/tools/mpicalc.c	Mon Feb  9 22:27:43 1998
***************
*** 29,34 ****
--- 29,38 ----
  #include <stdlib.h>
  #include <ctype.h>
  
+ #if __GLIBC__ >= 2
+ #include <locale.h>
+ #endif
+ 
  #include "util.h"
  #include "mpi.h"
  #include "i18n.h"
*** g10-0.2.3/tools/bftest.c~	Mon Feb  9 13:13:06 1998
--- g10-0.2.3/tools/bftest.c	Mon Feb  9 22:28:24 1998
***************
*** 27,32 ****
--- 27,36 ----
    #include <fcntl.h>
  #endif
  
+ #if __GLIBC__ >= 2
+ #include <locale.h>
+ #endif
+ 
  #include "util.h"
  #include "cipher.h"
  #include "i18n.h"
*** g10-0.2.3/g10/g10.c~	Mon Feb  9 13:13:26 1998
--- g10-0.2.3/g10/g10.c	Mon Feb  9 22:28:43 1998
***************
*** 25,30 ****
--- 25,35 ----
  #include <string.h>
  #include <unistd.h>
  
+ #if __GLIBC__ >= 2
+ #include <locale.h>
+ #endif
+ 
+ 
  #include "packet.h"
  #include "iobuf.h"
  #include "memory.h"
*** g10-0.2.3/g10/g10maint.c~	Mon Feb  9 14:52:32 1998
--- g10-0.2.3/g10/g10maint.c	Mon Feb  9 22:30:11 1998
***************
*** 24,29 ****
--- 24,33 ----
  #include <stdlib.h>
  #include <string.h>
  #include <unistd.h>
+ #if __GLIBC__ >= 2
+ #include <locale.h>
+ #endif
+ 
  
  #include "packet.h"
  #include "iobuf.h"
--- snip, snip ---




More information about the Gnupg-devel mailing list