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 committed Apr 17, 2023
1 parent b742bc6 commit b944f12
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions userspace/libscap/scap.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,26 @@ 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 "strlcpy.h"
#include "../../driver/ppm_ringbuffer.h"
#include "scap-int.h"

#ifdef HAS_ENGINE_NODRIVER
#include "settings.h"
#endif

#include "scap_engine_util.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 b944f12

Please sign in to comment.