1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-12 15:41:16 +03:00

Add missing includes for fprintf()

src/init.c:118:9: warning: incompatible implicit declaration of built-in
function 'fprintf' [enabled by default]
         fprintf(stderr, "Error in auto_init()\n");
         ^

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Norbert Pocs <npocs@redhat.com>
This commit is contained in:
Andreas Schneider
2022-11-23 15:28:00 +01:00
parent 9941e89f30
commit da357b1cb4
2 changed files with 4 additions and 0 deletions

View File

@@ -26,6 +26,7 @@
#include <limits.h> #include <limits.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h>
#ifndef _WIN32 #ifndef _WIN32
#include <netinet/in.h> #include <netinet/in.h>

View File

@@ -22,6 +22,9 @@
*/ */
#include "config.h" #include "config.h"
#include <stdio.h>
#include "libssh/priv.h" #include "libssh/priv.h"
#include "libssh/socket.h" #include "libssh/socket.h"
#include "libssh/dh.h" #include "libssh/dh.h"