($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: gerickson@nuovations.com, iwd@lists.linux.dev
Cc: Denis Kenzior <denkenz@gmail.com>
Subject: [PATCH] adhoc: Fix compilation on old systems
Date: Sun, 26 Nov 2023 21:19:55 -0600	[thread overview]
Message-ID: <20231127032029.1316478-1-denkenz@gmail.com> (raw)

  CC       src/adhoc.o
In file included from src/adhoc.c:28:0:
/usr/include/linux/if.h:234:19: error: field ‘ifru_addr’ has incomplete type
   struct sockaddr ifru_addr;
                   ^
/usr/include/linux/if.h:235:19: error: field ‘ifru_dstaddr’ has incomplete type
   struct sockaddr ifru_dstaddr;
                   ^
/usr/include/linux/if.h:236:19: error: field ‘ifru_broadaddr’ has incomplete type
   struct sockaddr ifru_broadaddr;
                   ^
/usr/include/linux/if.h:237:19: error: field ‘ifru_netmask’ has incomplete type
   struct sockaddr ifru_netmask;
                   ^
/usr/include/linux/if.h:238:20: error: field ‘ifru_hwaddr’ has incomplete type
   struct  sockaddr ifru_hwaddr;
                    ^
---
 src/adhoc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/adhoc.c b/src/adhoc.c
index 2b15f2bd4236..e787dab17ce4 100644
--- a/src/adhoc.c
+++ b/src/adhoc.c
@@ -25,6 +25,7 @@
 #endif
 
 #include <linux/rtnetlink.h>
+#include <sys/socket.h>
 #include <linux/if.h>
 
 #include <ell/ell.h>
-- 
2.42.0


             reply	other threads:[~2023-11-27  3:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27  3:19 Denis Kenzior [this message]
2023-11-27 10:30 ` [PATCH] adhoc: Fix compilation on old systems Marcel Holtmann

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=20231127032029.1316478-1-denkenz@gmail.com \
    --to=denkenz@gmail.com \
    --cc=gerickson@nuovations.com \
    --cc=iwd@lists.linux.dev \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).