]> git.draconx.ca Git - gentoo-fixes.git/blob - sys-devel/heirloom-devtools/files/heirloom-devtools-070527-64-bit.patch
sys-devel/heirloom-devtools: Build fix for modern glibc.
[gentoo-fixes.git] / sys-devel / heirloom-devtools / files / heirloom-devtools-070527-64-bit.patch
1 --- a/make/vroot/lock.cc        2007/01/18 15:06:32     1.1
2 +++ b/make/vroot/lock.cc        2007/10/01 11:44:26     1.2
3 @@ -31,7 +31,7 @@
4  /*
5   * Portions Copyright (c) 2007 Gunnar Ritter, Freiburg i. Br., Germany
6   *
7 - * Sccsid @(#)lock.cc  1.4 (gritter) 01/13/07
8 + * Sccsid @(#)lock.cc  1.5 (gritter) 10/1/07
9   */
10  
11  #include <avo/intl.h>  /* for NOCATGETS */
12 @@ -53,7 +53,7 @@
13  extern int             sys_nerr;
14  #endif
15  
16 -static void            file_lock_error(char *msg, char *file, char *str, int arg1, int arg2);
17 +static void            file_lock_error(char *msg, char *file, char *str, const char *arg1, const char *arg2);
18  
19  #define BLOCK_INTERUPTS sigfillset(&newset) ; \
20         sigprocmask(SIG_SETMASK, &newset, &oldset)
21 @@ -123,7 +123,7 @@
22  
23                 if (errno != EEXIST) {
24                         file_lock_error(msg, name, NOCATGETS("symlink(%s, %s)"),
25 -                           (int) name, (int) lockname);
26 +                           name, lockname);
27                         fprintf(stderr, "%s", msg);
28                         return errno;
29                 }
30 @@ -171,7 +171,8 @@
31   * Format a message telling why the lock could not be created.
32   */
33  static void
34 -file_lock_error(char *msg, char *file, char *str, int arg1, int arg2)
35 +file_lock_error(char *msg, char *file, char *str,
36 +       const char *arg1, const char *arg2)
37  {
38         int             len;
39