mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 04:55:46 +00:00
Only include strings.h in MinGW builds
* main.c: * job.c: Include strings.h only if HAVE_STRINGS_H is defined. * config.h.W32.template (HAVE_STRINGS_H): Define only for MinGW, as MSVC doesn't have this header.
This commit is contained in:
parent
912a0df127
commit
7ed37f0166
3 changed files with 6 additions and 0 deletions
|
@ -268,7 +268,9 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#define HAVE_STRICMP 1
|
#define HAVE_STRICMP 1
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#ifdef __MINGW32__
|
||||||
#define HAVE_STRINGS_H 1
|
#define HAVE_STRINGS_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define to 1 if you have the <string.h> header file. */
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
#define HAVE_STRING_H 1
|
#define HAVE_STRING_H 1
|
||||||
|
|
2
job.c
2
job.c
|
@ -29,7 +29,9 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
/* Default shell to use. */
|
/* Default shell to use. */
|
||||||
#ifdef WINDOWS32
|
#ifdef WINDOWS32
|
||||||
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h> /* for strcasecmp, strncasecmp */
|
#include <strings.h> /* for strcasecmp, strncasecmp */
|
||||||
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
const char *default_shell = "sh.exe";
|
const char *default_shell = "sh.exe";
|
||||||
|
|
2
main.c
2
main.c
|
@ -33,7 +33,9 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#ifdef WINDOWS32
|
#ifdef WINDOWS32
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
|
#ifdef HAVE_STRINGS_H
|
||||||
# include <strings.h> /* for strcasecmp */
|
# include <strings.h> /* for strcasecmp */
|
||||||
|
#endif
|
||||||
# include "pathstuff.h"
|
# include "pathstuff.h"
|
||||||
# include "sub_proc.h"
|
# include "sub_proc.h"
|
||||||
# include "w32err.h"
|
# include "w32err.h"
|
||||||
|
|
Loading…
Reference in a new issue