unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH 1/2] Fix struct ip_mreq detection
@ 2010-10-19 15:31 Tristan Colgate
  2010-10-19 18:52 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Tristan Colgate @ 2010-10-19 15:31 UTC (permalink / raw)
  To: guile-devel

Probably not the ideal fix, I tried using AC_CHECK_TYPE and adding
netinet/in.h but it didn't work. I've just copied the approach used
for LINGER

-- 
Tristan Colgate-McFarlane
----
  "You can get all your daily vitamins from 52 pints of guiness, and a
glass of milk"

 configure.ac |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 34ec603..ec82791 100644
--- a/configure.ac
+++ b/configure.ac
@@ -673,7 +673,22 @@ AC_CHECK_TYPE(socklen_t, ,
 #endif
 #include <sys/socket.h>
 ])
-AC_CHECK_TYPE(struct ip_mreq)
+
+AC_MSG_CHECKING(for struct ip_mreq)
+AC_CACHE_VAL(scm_cv_struct_ip_mreq,
+        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>]],
+                          [[struct ip_mreq req;]])],
+                          [scm_cv_struct_ip_mreq="yes"],
+                          [scm_cv_struct_ip_mreq="no"]))
+AC_MSG_RESULT($scm_cv_struct_ip_mreq)
+if test $scm_cv_struct_ip_mreq = yes; then
+        AC_DEFINE([HAVE_STRUCT_IP_MREQ], 1,
+          [Define this if your system defines struct ip_mreq, for use with the
+          setsockopt system call.])
+fi

 GUILE_HEADER_LIBC_WITH_UNISTD

-- 
1.7.2.3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] Fix struct ip_mreq detection
  2010-10-19 15:31 [PATCH 1/2] Fix struct ip_mreq detection Tristan Colgate
@ 2010-10-19 18:52 ` Andy Wingo
       [not found]   ` <AANLkTik9+GeGDexi4PozcDPtF-RSZAtwKg91mkNxZaV9@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2010-10-19 18:52 UTC (permalink / raw)
  To: Tristan Colgate; +Cc: guile-devel

Hi Tristan,

Under what conditions did this work or not work before?

Can you resubmit this patch and the next one with the commit log looking
like other commit logs in Guile?

When you do, please attach the output of git-format-patch instead of
sending it as-is; for some reason piping your message to git-am added
your sig to the commit log.

If you plan on making bigger patches in the future, it's probably a good
idea to get paperwork going with the FSF. If this is the case, reply
privately and I will send you details.

Thanks for the patches,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] Fix struct ip_mreq detection
       [not found]     ` <AANLkTimJ3wo_cTsBOBacu8e7bWVa5s2BQ1f1swh94F1J@mail.gmail.com>
@ 2010-10-20 21:16       ` Andy Wingo
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Wingo @ 2010-10-20 21:16 UTC (permalink / raw)
  To: Tristan Colgate; +Cc: guile-devel

Hi,

[adding list cc]

On Wed 20 Oct 2010 10:40, Tristan Colgate <tcolgate@gmail.com> writes:

> Are these OK?

Applied, thanks :-)

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-20 21:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 15:31 [PATCH 1/2] Fix struct ip_mreq detection Tristan Colgate
2010-10-19 18:52 ` Andy Wingo
     [not found]   ` <AANLkTik9+GeGDexi4PozcDPtF-RSZAtwKg91mkNxZaV9@mail.gmail.com>
     [not found]     ` <AANLkTimJ3wo_cTsBOBacu8e7bWVa5s2BQ1f1swh94F1J@mail.gmail.com>
2010-10-20 21:16       ` Andy Wingo

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 read-only IMAP folder(s) and NNTP newsgroup(s).