It would be nice if one could build php-excimer for macOS. Currently, the error is:
❯ make
/bin/sh /Users/kostajh/src/php-excimer/libtool --mode=compile /usr/bin/gcc -I. -I/Users/kostajh/src/php-excimer -DPHP_ATOM_INC -I/Users/kostajh/src/php-excimer/include -I/Users/kostajh/src/php-excimer/main -I/Users/kostajh/src/php-excimer -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/main -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/TSRM -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/Zend -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/ext -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/kostajh/src/php-excimer/excimer.c -o excimer.lo
/usr/bin/gcc -I. -I/Users/kostajh/src/php-excimer -DPHP_ATOM_INC -I/Users/kostajh/src/php-excimer/include -I/Users/kostajh/src/php-excimer/main -I/Users/kostajh/src/php-excimer -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/main -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/TSRM -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/Zend -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/ext -I/opt/homebrew/Cellar/php@7.4/7.4.30/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/kostajh/src/php-excimer/excimer.c -fno-common -DPIC -o .libs/excimer.o
In file included from /Users/kostajh/src/php-excimer/excimer.c:35:
./excimer_timer.h:52:2: error: unknown type name 'timer_t'; did you mean 'time_t'?
timer_t timer_id;
^~~~~~~
time_t
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_time_t.h:31:33: note: 'time_t' declared here
typedef __darwin_time_t time_t;
^
1 error generated.
make: *** [excimer.lo] Error 1This page is relevant https://unix.stackexchange.com/questions/194480/why-is-timer-t-defined-in-time-h-on-linux-but-not-os-x