Fixed Build fail issue when plugin-pcap build is diabled 36/199536/1
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 12 Feb 2019 14:35:53 +0000 (20:05 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 12 Feb 2019 15:24:26 +0000 (20:54 +0530)
commit8ab755ee84d54aabefe0a1e0988544283286e4d5
treed5d8240f269cb09476498e564b1c96e04bfb736e
parent3442dca7a4676306c8f61fc13d08051fad20141b
Fixed Build fail issue when plugin-pcap build is diabled

Description:
This patch resolves the error which comes when plugin-pcap build is disabled.

Below error comes without this patch when plugin-pcap is diabled:-
=================================================================
[   20s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/include/stc-manager-plugin-pcap.h:22:0,
[   20s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/src/stc-manager-plugin-pcap.c:20:
[   20s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/plugin/pcap/include/stc-plugin-pcap.h:28:18: fatal error: pcap.h: No such file or directory
[   20s]  #include <pcap.h>
[   20s]                   ^
[   20s] compilation terminated.
[   20s] src/CMakeFiles/stc-manager.dir/build.make:209: recipe for target 'src/CMakeFiles/stc-manager.dir/stc-manager-plugin-pcap.c.o' failed
[   20s] make[2]: *** [src/CMakeFiles/stc-manager.dir/stc-manager-plugin-pcap.c.o] Error 1
[   20s] make[2]: *** Waiting for unfinished jobs....
[   20s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/include/stc-manager-plugin-pcap.h:22:0,
[   20s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/src/stc-pcap.c:19:
[   20s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/plugin/pcap/include/stc-plugin-pcap.h:28:18: fatal error: pcap.h: No such file or directory
[   20s]  #include <pcap.h>
[   20s]                   ^
[   20s] compilation terminated.
[   20s] src/CMakeFiles/stc-manager.dir/build.make:329: recipe for target 'src/CMakeFiles/stc-manager.dir/stc-pcap.c.o' failed
[   20s] make[2]: *** [src/CMakeFiles/stc-manager.dir/stc-pcap.c.o] Error 1
[   20s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/include/stc-manager-plugin-pcap.h:22:0,
[   20s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/src/stc-manager.c:34:
[   20s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/plugin/pcap/include/stc-plugin-pcap.h:28:18: fatal error: pcap.h: No such file or directory
[   20s]  #include <pcap.h>
[   20s]                   ^
[   20s] compilation terminated.
=================================================================

Change-Id: I03c007d0adf19361304cc24acc85e4c5cd9d329d
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/stc-manager.spec
plugin/pcap/include/stc-plugin-pcap-internal.h [new file with mode: 0755]
plugin/pcap/include/stc-plugin-pcap.h
plugin/pcap/stc-plugin-pcap.c