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:
@@ -10,9 +10,9 @@ EXTERN_C_BEGIN
|
||||
#define ABBREV_TTY 2 /* remove tty */
|
||||
#define ABBREV_PTS 4 /* remove pts/ */
|
||||
|
||||
extern unsigned dev_to_tty(char *restrict ret, unsigned chop, dev_t dev_t_dev, int pid, unsigned int flags);
|
||||
extern unsigned dev_to_tty(char *__restrict ret, unsigned chop, dev_t dev_t_dev, int pid, unsigned int flags);
|
||||
|
||||
extern int tty_to_dev(const char *restrict const name);
|
||||
extern int tty_to_dev(const char *__restrict const name);
|
||||
|
||||
EXTERN_C_END
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user