FreeBSD compilation fix
(C) update
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* ndpi_main.c
|
* ndpi_main.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011-22 - ntop.org
|
* Copyright (C) 2011-23 - ntop.org
|
||||||
*
|
*
|
||||||
* This file is part of nDPI, an open source deep packet inspection
|
* This file is part of nDPI, an open source deep packet inspection
|
||||||
* library based on the OpenDPI and PACE technology by ipoque GmbH
|
* library based on the OpenDPI and PACE technology by ipoque GmbH
|
||||||
|
|||||||
+30
-5
@@ -1,9 +1,34 @@
|
|||||||
#include <stddef.h>
|
/*
|
||||||
|
* ndpi_memory.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2011-23 - ntop.org
|
||||||
|
*
|
||||||
|
* This file is part of nDPI, an open source deep packet inspection
|
||||||
|
* library based on the OpenDPI and PACE technology by ipoque GmbH
|
||||||
|
*
|
||||||
|
* nDPI is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* nDPI is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with nDPI. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <errno.h>
|
||||||
#ifdef WIN32
|
#include <sys/types.h>
|
||||||
#include "ndpi_win32.h" /* For __sync_fetch_and_add */
|
|
||||||
#endif
|
#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_UNKNOWN
|
||||||
|
|
||||||
|
#include "ndpi_config.h"
|
||||||
|
#include "ndpi_api.h"
|
||||||
|
|
||||||
/* ****************************************** */
|
/* ****************************************** */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user