projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid test failures on AIX and OSF/1.
[gnulib.git]
/
lib
/
relocwrapper.c
diff --git
a/lib/relocwrapper.c
b/lib/relocwrapper.c
index
c303803
..
42c64cf
100644
(file)
--- a/
lib/relocwrapper.c
+++ b/
lib/relocwrapper.c
@@
-1,11
+1,11
@@
/* Relocating wrapper program.
/* Relocating wrapper program.
- Copyright (C) 2003, 2005-200
6
Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005-200
7
Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
Written by Bruno Haible <bruno@clisp.org>, 2003.
- This program is free software
;
you can redistribute it and/or modify
+ This program is free software
:
you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version
2, or (at your option)
- any later version.
+ the Free Software Foundation; either version
3 of the License, or
+
(at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-13,21
+13,22
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Dependencies:
relocwrapper
-> progname
-> progreloc
/* Dependencies:
relocwrapper
-> progname
-> progreloc
- -> xreadlink
+ -> areadlink
+ -> readlink
+ -> canonicalize-lgpl
+ -> malloca
-> readlink
-> readlink
- -> canonicalize
- -> allocsa
-> relocatable
-> setenv
-> relocatable
-> setenv
- ->
allocs
a
+ ->
malloc
a
-> strerror
-> strerror
+ -> c-ctype
Macros that need to be set while compiling this file:
- ENABLE_RELOCATABLE 1
Macros that need to be set while compiling this file:
- ENABLE_RELOCATABLE 1
@@
-47,14
+48,12
@@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include <errno.h>
#include "progname.h"
#include "relocatable.h"
#include <errno.h>
#include "progname.h"
#include "relocatable.h"
-#include "
setenv
.h"
+#include "
c-ctype
.h"
/* Return a copy of the filename, with an extra ".bin" at the end.
More generally, it replaces "${EXEEXT}" at the end with ".bin${EXEEXT}". */
/* Return a copy of the filename, with an extra ".bin" at the end.
More generally, it replaces "${EXEEXT}" at the end with ".bin${EXEEXT}". */
@@
-83,8
+82,7
@@
add_dotbin (const char *filename)
{
unsigned char c1 = *s1;
unsigned char c2 = *s2;
{
unsigned char c1 = *s1;
unsigned char c2 = *s2;
- if ((c1 >= 'A' && c1 <= 'Z' ? c1 - 'A' + 'a' : c1)
- != (c2 >= 'A' && c2 <= 'Z' ? c2 - 'A' + 'a' : c2))
+ if (c_tolower (c1) != c_tolower (c2))
goto simple_append;
}
/* Insert ".bin" before EXEEXT or its equivalent. */
goto simple_append;
}
/* Insert ".bin" before EXEEXT or its equivalent. */