Hello again,
Ran across the following error while building the erlang interface:
```
gcc -o erlang_APL_nif.so -Wall -fpic -shared -rdynamic -pthread \
erlang_APL_nif.c -L/usr/local/lib/apl -lapl
erlang_APL_nif.c:36:15: error: #if with no _expression_
#if HAVE_DIRTY
^
make[2]: *** [Makefile:482: erlang_APL_nif.so] Error 1
```
```
Linux 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64 GNU/Linux
gcc (Debian 8.3.0-7) 8.3.0
```
I'm including the patch I used to fix it:
Index: erlang/erlang_APL_nif.c
===================================================================
--- erlang/erlang_APL_nif.c (revision 1163)
+++ erlang/erlang_APL_nif.c (working copy)
@@ -33,7 +33,7 @@
# define HAVE_DIRTY /* we hope so */
#endif
-#if HAVE_DIRTY
+#ifdef HAVE_DIRTY
# define DIRTY_FLAG , ERL_NIF_DIRTY_JOB_CPU_BOUND
#else
# define DIRTY_FLAG
Cheers
- Rowan