edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Paul Onyschuk <ptmelville@gmail.com>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] [patch] Missing headers
Date: Wed, 6 Aug 2014 16:01:11 +0200	[thread overview]
Message-ID: <20140806160111.ae43a5b858d3dce7ed60e735@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

Implicit function declarations and missing headers:

mkdir() - sys/stat.h
sethostent() and endhostent() - netdb.h
inet_addr() - arpa/inet.h

Patch fixes missing inclusions.

-- 
Paul Onyschuk

[-- Attachment #2: edbrowse-missing-headers.h --]
[-- Type: application/octet-stream, Size: 711 bytes --]

diff --git a/src/buffers.c b/src/buffers.c
index 16c49b5..143adc3 100644
--- a/src/buffers.c
+++ b/src/buffers.c
@@ -5,6 +5,7 @@
  */
 
 #include "eb.h"
+#include <netdb.h>
 #include <signal.h>
 
 /* If this include file is missing, you need the pcre package,
diff --git a/src/main.c b/src/main.c
index ba14fa3..a889316 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,6 +6,7 @@
 
 #include "eb.h"
 
+#include <sys/stat.h>
 #include <signal.h>
 #include <pcre.h>
 
diff --git a/src/stringfile.c b/src/stringfile.c
index ac8c6c2..3e39d01 100644
--- a/src/stringfile.c
+++ b/src/stringfile.c
@@ -6,6 +6,7 @@
 #include "eb.h"
 
 #include <sys/stat.h>
+#include <arpa/inet.h>
 #ifdef DOSLIKE
 #include <dos.h>
 #else

                 reply	other threads:[~2014-08-06 14:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140806160111.ae43a5b858d3dce7ed60e735@gmail.com \
    --to=ptmelville@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).