Closed wouterbeek closed 7 years ago
The relevant lines for Linux are at the top:
#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
#define _XOPEN_SOURCE /* GNU glibc grantpt() prototypes */
#endif
man grantpt
says _XOPEN_SOURCE
must be defined to get the prototypes from the headers.
Possibly something has changed there. You could have a look at man grantpt
on your version to check requirements. Its not very urgent though. On most platforms it will work anyway and the functionality isn't used much.
Thanks, the commit by @susnux indeed fixes this issue on my machine.
Compiling from sources on Ubuntu 16.10 I get the following warnings that I haven't seen before:
There is indeed a few lines in
packages/xpce/src/unx/process.c
that mention the absence of these declarations: