[EFL] Fix build error in NetworkStateNotifierEfl.cpp

https://bugs.webkit.org/show_bug.cgi?id=95724

Unreviewed EFL build fix.

Make sure <sys/socket.h> is included before
<linux/netlink.h> to fix build errors on some
systems (e.g. Ubuntu 11.10).

No new tests, no behavior change.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-04

* platform/network/efl/NetworkStateNotifierEfl.cpp:

git-svn-id: svn://svn.chromium.org/blink/trunk@127455 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent bf56ae44
2012-09-04 Christophe Dumez <christophe.dumez@intel.com>
[EFL] Fix build error in NetworkStateNotifierEfl.cpp
https://bugs.webkit.org/show_bug.cgi?id=95724
Unreviewed EFL build fix.
Make sure <sys/socket.h> is included before
<linux/netlink.h> to fix build errors on some
systems (e.g. Ubuntu 11.10).
No new tests, no behavior change.
* platform/network/efl/NetworkStateNotifierEfl.cpp:
2012-09-04 Vsevolod Vlasov <vsevik@chromium.org> 2012-09-04 Vsevolod Vlasov <vsevik@chromium.org>
Web Inspector: Create JavaScriptSources based on network resources. Web Inspector: Create JavaScriptSources based on network resources.
...@@ -31,12 +31,14 @@ ...@@ -31,12 +31,14 @@
#include <Eeze.h> #include <Eeze.h>
#include <Eeze_Net.h> #include <Eeze_Net.h>
#include <asm/types.h> #include <asm/types.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <string.h> #include <string.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h> #include <unistd.h>
// Must come at the end so that sys/socket.h is included first.
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
static const char udevLoopBackInterfaceSysPath[] = "lo"; static const char udevLoopBackInterfaceSysPath[] = "lo";
static const char udevOperstateAttribute[] = "operstate"; static const char udevOperstateAttribute[] = "operstate";
static const char udevOperstateUp[] = "up"; static const char udevOperstateUp[] = "up";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment