Package: atftp
Severity: important
Version: 0.7.dfsg-1
Tags: patch


Hi,

the current version fails to build on GNU/kFreeBSD.

It needs small tweaks, see bellow.

It would also be nice if you can ask upstream
to include this changes.

Thanks in advance

                        Petr


--- tftp_io.c~  2006-12-21 14:58:03.000000000 +0100
+++ tftp_io.c   2006-12-21 14:58:03.000000000 +0100
@@ -284,7 +284,7 @@
                     cmsg != NULL && cmsg->cmsg_len >= sizeof(*cmsg);
                     cmsg = CMSG_NXTHDR(&msg, cmsg))
                {
-#ifdef SOL_IP
+#if defined(SOL_IP) && defined(IP_PKTINFO)
                     if (cmsg->cmsg_level == SOL_IP
                         && cmsg->cmsg_type == IP_PKTINFO)
                     {


--- tftpd.c~    2006-12-21 14:59:23.000000000 +0100
+++ tftpd.c     2006-12-21 14:59:23.000000000 +0100
@@ -301,7 +301,7 @@
           open_logger("atftpd", log_file, logging_level);
      }

-#ifdef SOL_IP
+#if defined(SOL_IP) && defined(IP_PKTINFO)
      /* We need to retieve some information from incomming packets */
      if (setsockopt(0, SOL_IP, IP_PKTINFO, &one, sizeof(one)) != 0)
      {



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to