Skip to content

Commit e444ce3

Browse files
authored
Merge pull request #29 from RT-Thread/lnx
Add lnx-headers package
2 parents 4116456 + 95f58f4 commit e444ce3

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <netpacket/packet.h>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package("lnx-headers")
2+
do
3+
set_description("The headers for linux compatibility")
4+
5+
on_install(function(package)
6+
os.vcp(path.join(os.scriptdir(), "inc/linux/*"), package:installdir("include/linux"))
7+
end)
8+
9+
on_test(function(package)
10+
assert(package:has_cincludes("linux/if_packet.h"))
11+
end)
12+
end

0 commit comments

Comments
 (0)