 +check_exists_define01(sem_unlink HAVE_SEM_UNLINK)
 +check_exists_define01(sem_wait HAVE_SEM_WAIT)
 +check_exists_define01(sendfile HAVE_SENDFILE)
-+check_exists_define01(sendfile64 HAVE_SENDFILE64) #TODO: configure doesn't find
++check_exists_define01(sendfile64 HAVE_SENDFILE64) #TODO: configure diff
 +check_exists_define01(sendfilev HAVE_SENDFILEV)
 +check_exists_define01(sendfilev64 HAVE_SENDFILEV64)
 +check_exists_define01(send_file HAVE_SEND_FILE)

+add_definitions(-DHAVE_CONFIG_H)
+if(UNIX)
+  add_definitions(-DCMAKE_UNIX)
+endif()
diff --git a/include/apr_general.h b/include/apr_general.h
index c7389ec..0b32945 100644

+set(SETPGRP_VOID TRUE) #TODO: determine
+set(SIGWAIT_TAKES_ONE_ARG FALSE) #TODO: determine
+set(STACK_DIRECTION FALSE) #TODO: determine
+if(${CMAKE_SYSTEM_NAME} STREQUAL SunOS)
+  set(STRERROR_R_RC_INT TRUE) #TODO: determine
+else()
+  set(STRERROR_R_RC_INT FALSE) #TODO: determine
+endif()
+set(SYSVSEM_IS_GLOBAL FALSE) #TODO: determine
+list(APPEND cmakedefine01
+  NEGATIVE_EAI
