Bug 95724 - [EFL] Fix build error in NetworkStateNotifierEfl.cpp
Summary: [EFL] Fix build error in NetworkStateNotifierEfl.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 03:14 PDT by Chris Dumez
Modified: 2012-09-04 04:24 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.58 KB, patch)
2012-09-04 03:16 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2012-09-04 03:14:09 PDT
People have reported the following build error when using Ubuntu 11.10:
Source/WebCore/platform/network/efl/NetworkStateNotifierEfl.cpp:144:10: error: ‘struct sockaddr_nl’ has no member named ‘nl_family’

This builds just fine on Ubuntu 12.04 though.

The reason for the compilation order is that on some systems, <sys/socket.h> must be included BEFORE <linux/netlink.h>. Unfortunately, this is against coding style (includes should be in alphabetical order) but I don't think we have a choice here.
Comment 1 Chris Dumez 2012-09-04 03:16:42 PDT
Created attachment 161998 [details]
Patch
Comment 2 WebKit Review Bot 2012-09-04 03:19:01 PDT
Attachment 161998 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/platform/network/efl/NetworkStateNotifierEfl.cpp:38:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Chris Dumez 2012-09-04 03:21:49 PDT
The style error is expected. We have to code against style here to include headers in a specific order.
Comment 4 WebKit Review Bot 2012-09-04 04:24:50 PDT
Comment on attachment 161998 [details]
Patch

Clearing flags on attachment: 161998

Committed r127455: <http://trac.webkit.org/changeset/127455>
Comment 5 WebKit Review Bot 2012-09-04 04:24:54 PDT
All reviewed patches have been landed.  Closing bug.