Diff of /catopen/catopen.c [8fd7cb] .. [06ece8] Maximize Restore

  Switch to unified view

a/catopen/catopen.c b/catopen/catopen.c
...
...
4
#include <stdlib.h>
4
#include <stdlib.h>
5
#include <string.h>
5
#include <string.h>
6
#include <fcntl.h>
6
#include <fcntl.h>
7
#include <nl_types.h>
7
#include <nl_types.h>
8
8
9
extern char *index (const char *, int);         /* not always in <string.h> */
9
/* if we don't have the strchr() function,
10
 * then we must fall back to using the older index() function,
11
 * but (apparently) this isn't always prototyped in string.h
12
 */
13
#ifndef index
14
/* i.e. NOT using strchr()
15
 */
16
extern char *index (const char *, int);
17
#endif
10
extern char *my_malloc(int);    /* in util.c */
18
extern char *my_malloc(int);    /* in util.c */
11
19
12
#ifndef DEFAULT_NLSPATH
20
#ifndef DEFAULT_NLSPATH
13
# if __GLIBC__ >= 2
21
# if __GLIBC__ >= 2
14
#  define DEFAULT_NLSPATH "/usr/share/locale/%L/%N"
22
#  define DEFAULT_NLSPATH "/usr/share/locale/%L/%N"