Skip to content

Instantly share code, notes, and snippets.

@ncopa
Created March 23, 2015 07:54
Show Gist options
  • Save ncopa/0afd7a9779218837830d to your computer and use it in GitHub Desktop.
Save ncopa/0afd7a9779218837830d to your computer and use it in GitHub Desktop.
#ifndef __VIR_NETLINK_H__
# define __VIR_NETLINK_H__
# include "internal.h"
# include "virmacaddr.h"
# if defined(__linux__) && defined(HAVE_LIBNL)
#include <stdio.h>
#include <poll.h>
/* Work around a bug where older libnl-1 headers expected older gcc
* semantics of 'extern inline' that conflict with C99 semantics. */
# ifdef HAVE_LIBNL1
# define inline
# endif
# include <netlink/msg.h>
# ifdef HAVE_LIBNL1
# undef inline
# endif
# else
struct nl_msg;
struct sockaddr_nl;
struct nlattr;
struct nlmsghdr;
# endif /* __linux__ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment