Discussion:
[Bug-apl] sockaddr_in needs <netinet/in.h>
Marcin Cieslak
2017-04-22 21:53:57 UTC
Permalink
Hello,

I am complete newcomer to APL (thanks to Alex Weiner http://mastodon.social/@acw).

I realized I could not build GNU APL on FreeBSD because of a missing header file
which gets included automatically on Linux via <netdb.h>.

Here's the patch:

Index: src/emacs_mode/TcpListener.cc
===================================================================
--- src/emacs_mode/TcpListener.cc (revision 928)
+++ src/emacs_mode/TcpListener.cc (working copy)
@@ -28,6 +28,7 @@
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <sys/un.h>
#include <errno.h>
#include <netdb.h>


Marcin Cieślak
Juergen Sauermann
2017-04-23 10:04:18 UTC
Permalink
<html>
<head>
<meta content="text/html; charset=iso-8859-2"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi Marcin,<br>
<br>
thanks, fixed in <b>SVN 929</b>.<br>
<br>
Elias, please sync back.<br>
<br>
/// Jürgen<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 04/22/2017 11:53 PM, Marcin Cieslak
wrote:<br>
</div>
<blockquote
cite="mid:***@z.fncre.vasb"
type="cite">
<pre wrap="">Hello,

I am complete newcomer to APL (thanks to Alex Weiner <a class="moz-txt-link-freetext" href="http://mastodon.social/@acw">http://mastodon.social/@acw</a>).

I realized I could not build GNU APL on FreeBSD because of a missing header file
which gets included automatically on Linux via &lt;netdb.h&gt;.

Here's the patch:

Index: src/emacs_mode/TcpListener.cc
===================================================================
--- src/emacs_mode/TcpListener.cc (revision 928)
+++ src/emacs_mode/TcpListener.cc (working copy)
@@ -28,6 +28,7 @@
#include &lt;pthread.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
+#include &lt;netinet/in.h&gt;
#include &lt;sys/un.h&gt;
#include &lt;errno.h&gt;
#include &lt;netdb.h&gt;


Marcin Cieślak


</pre>
</blockquote>
<br>
</body>
</html>

Loading...