summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-29 07:10:53 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-29 07:10:53 -0700
commitc168659d2b3376effcfee77acf4fc4a50c4ae787 (patch)
tree62e344e7d90db78e0db7fa28531f1cd8f34506a2
parent8843aff1cf55256596bce77e90532b1115e8547e (diff)
downloadtxr-c168659d2b3376effcfee77acf4fc4a50c4ae787.tar.gz
txr-c168659d2b3376effcfee77acf4fc4a50c4ae787.tar.bz2
txr-c168659d2b3376effcfee77acf4fc4a50c4ae787.zip
C++ fixes in configure script.
* configure: pointer mismatch in poll test, rejected by g++. Also warning about missing braces in initializer. Test for mkstemps used reserved word template as identifier.
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index f13d5d35..fae0308e 100755
--- a/configure
+++ b/configure
@@ -1518,9 +1518,9 @@ cat > conftest.c <<!
int main(int argc, char **argv)
{
- struct pollfd fds[42] = { 0 };
+ static struct pollfd fds[42];
nfds_t n = 42;
- int err = poll(&fds, 42, 1000);
+ int err = poll(fds, 42, 1000);
return 0;
}
!
@@ -2241,8 +2241,8 @@ cat > conftest.c <<!
int main(int argc, char **argv)
{
- char template[] = "abcXXXXXX.xyz";
- int fd = mkstemps(template, 4);
+ char templ[] = "abcXXXXXX.xyz";
+ int fd = mkstemps(templ, 4);
return 0;
}
!