Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
ce552537
Commit
ce552537
authored
15 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
libnl-tiny: fix potential redefinition of offsetof
SVN-Revision: 16030
parent
3e8dc710
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/libnl-tiny/src/include/netlink-local.h
+2
-0
2 additions, 0 deletions
package/libnl-tiny/src/include/netlink-local.h
with
2 additions
and
0 deletions
package/libnl-tiny/src/include/netlink-local.h
+
2
−
0
View file @
ce552537
...
@@ -109,7 +109,9 @@ static inline int nl_cb_call(struct nl_cb *cb, int type, struct nl_msg *msg)
...
@@ -109,7 +109,9 @@ static inline int nl_cb_call(struct nl_cb *cb, int type, struct nl_msg *msg)
}
}
#define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0]))
#define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0]))
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif
#define __init __attribute__ ((constructor))
#define __init __attribute__ ((constructor))
#define __exit __attribute__ ((destructor))
#define __exit __attribute__ ((destructor))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment