Skip to content

Commit

Permalink
chore(scap): trim scap.c includes
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
  • Loading branch information
gnosek authored and poiana committed Jul 14, 2023
1 parent 6934b62 commit d2ac5fc
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions userspace/libscap/scap.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,21 @@ limitations under the License.
*/

#include <stdio.h>
#include <stdlib.h>
#ifdef _WIN32
#include <Winsock2.h>
#else
#include <unistd.h>
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/mman.h>
#endif // _WIN32

#include "scap.h"
#include "strerror.h"
#include "strl.h"
#include "../../driver/ppm_ringbuffer.h"
#include "scap-int.h"
#include "scap_api_version.h"
#include "scap_platform.h"

#define SCAP_HANDLE_T void
#include "scap_engines.h"

#ifdef __linux__
#include "scap_linux_platform.h"
#endif

//#define NDEBUG
#include <assert.h>

const char* scap_getlasterr(scap_t* handle)
{
return handle ? handle->m_lasterr : "null scap handle";
Expand Down

0 comments on commit d2ac5fc

Please sign in to comment.