From dfe2b46068d92872084a22efc7e5229651889711 Mon Sep 17 00:00:00 2001
From: Joe Orton <jorton@redhat.com>
Date: Thu, 14 Mar 2019 10:40:18 +0000
Subject: [PATCH] Fix build with earlier 2.4.x which don't define
 AP_STATUS_IS_HEADER_ONLY.

---
 mod_http2/h2_from_h1.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mod_http2/h2_from_h1.c b/mod_http2/h2_from_h1.c
index edb1d8e..0753099 100644
--- a/mod_http2/h2_from_h1.c
+++ b/mod_http2/h2_from_h1.c
@@ -35,6 +35,10 @@
 #include "h2_task.h"
 #include "h2_util.h"
 
+#ifndef AP_STATUS_IS_HEADER_ONLY
+#define AP_STATUS_IS_HEADER_ONLY(x) ((x) == HTTP_NO_CONTENT || \
+                                     (x) == HTTP_NOT_MODIFIED)
+#endif
 
 /* This routine is called by apr_table_do and merges all instances of
  * the passed field values into a single array that will be further
-- 
1.8.3.1

