Commit dfbc6e6a authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

examples: Guard include config.h with HAVE_CONFIG_H

parent 2eab5d03
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
* This program is written to show how to use nghttp2 API in C and * This program is written to show how to use nghttp2 API in C and
* intentionally made simple. * intentionally made simple.
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* !HAVE_CONFIG_H */
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
...@@ -40,7 +44,6 @@ ...@@ -40,7 +44,6 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <config.h>
#include <nghttp2/nghttp2.h> #include <nghttp2/nghttp2.h>
#include <openssl/ssl.h> #include <openssl/ssl.h>
......
...@@ -22,7 +22,10 @@ ...@@ -22,7 +22,10 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif /* !HAVE_CONFIG_H */
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
......
...@@ -22,8 +22,11 @@ ...@@ -22,8 +22,11 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <sys/types.h> #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif /* !HAVE_CONFIG_H */
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
......
...@@ -22,7 +22,10 @@ ...@@ -22,7 +22,10 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif /* !HAVE_CONFIG_H */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
......
...@@ -27,7 +27,11 @@ ...@@ -27,7 +27,11 @@
* overhead of underlying I/O library (e.g., libevent, Boost ASIO). * overhead of underlying I/O library (e.g., libevent, Boost ASIO).
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif /* !HAVE_CONFIG_H */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment