Include errno.h in a few files

errno.h was removed from some common headers. A few files use
errno and need to include it. On at least some Linux distributions
(Rocky 8), it doesn't get pulled in by other headers.
This commit is contained in:
John Thacker 2023-06-28 18:39:11 -04:00
parent c068948610
commit 9a72f9bb1b
7 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include <glib.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -16,7 +16,9 @@
#include "wslua.h"
#include "init_wslua.h"
#include <epan/dissectors/packet-frame.h>
#include <errno.h>
#include <math.h>
#include <stdio.h>
#include <epan/expert.h>

View File

@ -15,6 +15,7 @@
/* WSLUA_MODULE Dir Directory Handling Functions */
#include "wslua.h"
#include <errno.h>
#include <wsutil/file_util.h>
WSLUA_CLASS_DEFINE(Dir,FAIL_ON_NULL("Dir")); /* A Directory object, as well as associated functions. */

View File

@ -15,6 +15,8 @@
#include "config.h"
#include "wslua_file_common.h"
#include <errno.h>
#include <wiretap/file_wrappers.h>
/* WSLUA_CONTINUE_MODULE File */

View File

@ -15,6 +15,8 @@
#include "mate.h"
#include "mate_util.h"
#include <errno.h>
#include <wsutil/file_util.h>

View File

@ -12,6 +12,7 @@
#include <glib.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -13,6 +13,7 @@
#include "config.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>