git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation and comment tidies.
[exim.git]
/
src
/
src
/
buildconfig.c
diff --git
a/src/src/buildconfig.c
b/src/src/buildconfig.c
index 2cfc32de26bfcb5112f1a5ed4121cfa418912a64..fe16082f71fd40f180c1c763c804764344d12bf7 100644
(file)
--- a/
src/src/buildconfig.c
+++ b/
src/src/buildconfig.c
@@
-1,10
+1,10
@@
-/* $Cambridge: exim/src/src/buildconfig.c,v 1.
9 2005/06/17 13:52:15
ph10 Exp $ */
+/* $Cambridge: exim/src/src/buildconfig.c,v 1.
12 2006/02/07 11:19:00
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
/*************************************************
* Exim - an Internet mail transport agent *
*************************************************/
-/* Copyright (c) University of Cambridge 1995 - 200
5
*/
+/* Copyright (c) University of Cambridge 1995 - 200
6
*/
/* See the file NOTICE for conditions of use and distribution. */
/* See the file NOTICE for conditions of use and distribution. */
@@
-181,7
+181,7
@@
base = fopen("Makefile", "rb");
if (base == NULL)
{
printf("*** Buildconfig: failed to open Makefile\n");
if (base == NULL)
{
printf("*** Buildconfig: failed to open Makefile\n");
- fclose(new);
+
(void)
fclose(new);
exit(1);
}
exit(1);
}
@@
-285,15
+285,16
@@
fprintf(new, "#define HAVE_ICONV %s\n",
if (errno_quota[0] != 0)
fprintf(new, "\n#define ERRNO_QUOTA %s\n", errno_quota);
if (errno_quota[0] != 0)
fprintf(new, "\n#define ERRNO_QUOTA %s\n", errno_quota);
-if (strcmp(cc, "gcc") == 0 && strstr(ostype, "IRIX") != NULL)
+if (strcmp(cc, "gcc") == 0 &&
+ (strstr(ostype, "IRIX") != NULL || strstr(ostype, "AIX") != NULL))
{
fprintf(new, "\n/* This switch includes the code to fix the inet_ntoa() */");
{
fprintf(new, "\n/* This switch includes the code to fix the inet_ntoa() */");
- fprintf(new, "\n/* bug when using gcc on an IRIX system. */");
+ fprintf(new, "\n/* bug when using gcc on an IRIX
or AIX
system. */");
fprintf(new, "\n#define USE_INET_NTOA_FIX");
}
fprintf(new, "\n");
fprintf(new, "\n#define USE_INET_NTOA_FIX");
}
fprintf(new, "\n");
-fclose(base);
+
(void)
fclose(base);
/* Now handle the macros listed in the defaults */
/* Now handle the macros listed in the defaults */
@@
-302,7
+303,7
@@
base = fopen("../src/config.h.defaults", "rb");
if (base == NULL)
{
printf("*** Buildconfig: failed to open ../src/config.h.defaults\n");
if (base == NULL)
{
printf("*** Buildconfig: failed to open ../src/config.h.defaults\n");
- fclose(new);
+
(void)
fclose(new);
exit(1);
}
exit(1);
}
@@
-815,7
+816,7
@@
while (fgets(buffer, sizeof(buffer), base) != NULL)
}
}
}
}
-fclose(base);
+
(void)
fclose(base);
/* If any AUTH macros were defined, ensure that SUPPORT_CRYPTEQ is also
defined. */
/* If any AUTH macros were defined, ensure that SUPPORT_CRYPTEQ is also
defined. */
@@
-829,7
+830,7
@@
if (have_auth)
/* End off */
fprintf(new, "\n/* End of config.h */\n");
/* End off */
fprintf(new, "\n/* End of config.h */\n");
-fclose(new);
+
(void)
fclose(new);
return 0;
}
return 0;
}