Index: src/tls/ObjFWTLS.h
==================================================================
--- src/tls/ObjFWTLS.h
+++ src/tls/ObjFWTLS.h
@@ -15,11 +15,19 @@
* You should have received a copy of the GNU Lesser General Public License
* version 3.0 along with this program. If not, see
* .
*/
-#import "macros.h"
+#ifdef OBJFWTLS_LOCAL_INCLUDES
+# import "macros.h"
+#else
+# if defined(__has_feature) && __has_feature(modules)
+@import ObjFW;
+# else
+# import
+# endif
+#endif
#ifdef __cplusplus
extern "C" {
#endif
extern int _ObjFWTLS_reference;
Index: utils/ofhttp/Makefile
==================================================================
--- utils/ofhttp/Makefile
+++ utils/ofhttp/Makefile
@@ -16,10 +16,11 @@
CPPFLAGS += -I../../src \
-I../../src/runtime \
-I../../src/exceptions \
-I../../src/tls \
-I../.. \
+ -DOBJFWTLS_LOCAL_INCLUDES \
-DLOCALIZATION_DIR='"${datadir}/ofhttp/localization"'
LIBS := -L../../src -L../../src/tls ${OFHTTP_LIBS} -lobjfw \
-L../../src/runtime ${RUNTIME_LIBS} \
${LIBS}
LD = ${OBJC}