alex-courtis / way-displays

way-displays: Auto Manage Your Wayland Displays
MIT License
252 stars 13 forks source link

replace __pid_t with pid_t #34

Closed nekopsykose closed 2 years ago

nekopsykose commented 2 years ago

compiling on alpine linux edge otherwise fails with:

In file included from src/client.c:10:
inc/process.h:6:1: error: unknown type name '__pid_t'; did you mean 'pid_t'?
    6 | __pid_t pid_active_server(void);
      | ^~~~~~~
      | pid_t
gcc -O2 -pipe -fomit-frame-pointer -march=native -fstack-clash-protection -ftree-vectorize -pedantic -Wall -Wextra -Werror -Wno-unused-parameter -O3 -std=gnu17 -Wold-style-definition -Wstrict-prototypes     -O2 -pipe -fomit-frame-pointer -march=native -fstack-clash-protection -ftree-vectorize -Iinc -Ipro -D_GNU_SOURCE -DVERSION=\""1.5.0"\"  -c -o src/layout.o src/layout.c
make: *** [<builtin>: src/client.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/displ.c:9:
inc/process.h:6:1: error: unknown type name '__pid_t'; did you mean 'pid_t'?
    6 | __pid_t pid_active_server(void);
      | ^~~~~~~
      | pid_t
make: *** [<builtin>: src/displ.o] Error 1
In file included from src/fds.c:17:
inc/process.h:6:1: error: unknown type name '__pid_t'; did you mean 'pid_t'?
    6 | __pid_t pid_active_server(void);
      | ^~~~~~~
      | pid_t
make: *** [<builtin>: src/fds.o] Error 1
alex-courtis commented 2 years ago

Many thanks! 1.5.1 released.