include config.h first

This commit is contained in:
Omar Polo 2021-02-12 12:49:36 +00:00
parent 52418c8d82
commit 7689871446
8 changed files with 16 additions and 16 deletions

View File

@ -14,12 +14,12 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../config.h"
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include "../config.h"
static void vwarn_impl(const char*, va_list);
static void vwarnx_impl(const char*, va_list);

View File

@ -3,10 +3,10 @@
* Written by Matthew Dempsky.
*/
#include <string.h>
#include "../config.h"
#include <string.h>
void
explicit_bzero(void *buf, size_t len)
{

View File

@ -14,14 +14,14 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../config.h"
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include "../config.h"
/*
* This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
* if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW

View File

@ -14,14 +14,14 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../config.h"
#include <sys/types.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "../config.h"
#if HAVE_PR_SET_NAME
#include <sys/prctl.h>

View File

@ -14,11 +14,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../config.h"
#include <sys/types.h>
#include <string.h>
#include "../config.h"
/*
* Appends src to string dst of size dsize (unlike strncat, dsize is the
* full size of dst, not space left). At most dsize-1 characters

View File

@ -14,11 +14,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../config.h"
#include <sys/types.h>
#include <string.h>
#include "../config.h"
/*
* Copy string src to buffer dst of size dsize. At most dsize-1
* chars will be copied. Always NUL terminates (unless dsize == 0).

View File

@ -15,12 +15,12 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "../config.h"
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include "../config.h"
#define INVALID 1
#define TOOSMALL 2
#define TOOLARGE 3

View File

@ -21,12 +21,12 @@
* of another portable solution.
*/
#include "../config.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "../config.h"
int
vasprintf(char **ret, const char *format, va_list ap)
{