mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Do not include stdio.h before dnsmasq.h
We define some constants in dnsmasq.h, which have an influence on stdio.h. So do not include stdio.h before dnsmasq.h.
This commit is contained in:
committed by
Simon Kelley
parent
96e063c43d
commit
b697fbb7f1
@@ -16,6 +16,12 @@
|
|||||||
|
|
||||||
#define COPYRIGHT "Copyright (c) 2000-2017 Simon Kelley"
|
#define COPYRIGHT "Copyright (c) 2000-2017 Simon Kelley"
|
||||||
|
|
||||||
|
/* We do defines that influence behavior of stdio.h, so complain
|
||||||
|
if included too early. */
|
||||||
|
#ifdef _STDIO_H
|
||||||
|
# error "Header file stdio.h included too early!"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NO_LARGEFILE
|
#ifndef NO_LARGEFILE
|
||||||
/* Ensure we can use files >2GB (log files may grow this big) */
|
/* Ensure we can use files >2GB (log files may grow this big) */
|
||||||
# define _LARGEFILE_SOURCE 1
|
# define _LARGEFILE_SOURCE 1
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "dnsmasq.h"
|
#include "dnsmasq.h"
|
||||||
|
|
||||||
#ifdef HAVE_SCRIPT
|
#ifdef HAVE_SCRIPT
|
||||||
|
|||||||
Reference in New Issue
Block a user