Change restrict to __restrict in public includes
procps automake defines restrict which means the binaries for procps binaries compile. However external programs may not of defined restrict which means they will not complie if they include files found in /usr/include/proc. Includes from libc6 use __restrict and if is good enough for them, its good enough for us.
This commit is contained in:
@@ -16,13 +16,13 @@
|
||||
EXTERN_C_BEGIN
|
||||
|
||||
/* return -1 on failure */
|
||||
extern int signal_name_to_number(const char *restrict name);
|
||||
extern int signal_name_to_number(const char *__restrict name);
|
||||
|
||||
extern const char *signal_number_to_name(int signo);
|
||||
|
||||
extern int print_given_signals(int argc, const char *restrict const *restrict argv, int max_line);
|
||||
extern int print_given_signals(int argc, const char *__restrict const *__restrict argv, int max_line);
|
||||
|
||||
extern char *strtosig(const char *restrict s);
|
||||
extern char *strtosig(const char *__restrict s);
|
||||
|
||||
extern void pretty_print_signals(void);
|
||||
|
||||
|
Reference in New Issue
Block a user