summaryrefslogtreecommitdiff
path: root/mit-pthreads
diff options
context:
space:
mode:
authorunknown <monty@tik.mysql.fi>2001-07-16 03:04:30 +0300
committerunknown <monty@tik.mysql.fi>2001-07-16 03:04:30 +0300
commit2a18a762e1d4c688ff169e92a8c3977bcbb00f03 (patch)
tree12ce618a9c1f4bb3a79632d66e11232e84ab2e12 /mit-pthreads
parentcb696ba1f3f7d64dbedd64487c7d02660251f98f (diff)
downloadmariadb-git-2a18a762e1d4c688ff169e92a8c3977bcbb00f03.tar.gz
Patch for netBSD
Added warning for tables where the auto_increment key is 0 Fixed DELETE ... LIMIT 0 Fixed UPDATE ..LIMIT 0 Docs/manual.texi: Changelog + Update to CHECK TABLE configure.in: Patch for netBSD mit-pthreads/gen/ctime.c: Patch for netBSD mit-pthreads/machdep/netbsd-1.1/__signal.h: Patch for netBSD mit-pthreads/stdio/strerror.c: Patch for netBSD myisam/mi_check.c: Added warning for tables where the auto_increment key is 0 myisam/myisamchk.c: Added warning for tables where the auto_increment key is 0 mysql-test/r/auto_increment.result: Added warning for tables where the auto_increment key is 0 mysql-test/r/limit.result: Test of DELETE ... LIMIT 0 mysql-test/t/auto_increment.test: Added warning for tables where the auto_increment key is 0 mysql-test/t/limit.test: Test of DELETE ... LIMIT 0 sql/Makefile.am: Don't add mysqld_LDADD to mysqlbinlog (portability patch) sql/ha_gemini.cc: Changed copyright (have got ok from NuSphere previously) sql/ha_gemini.h: Changed copyright (have got ok from NuSphere previously) sql/sql_delete.cc: Fixed DELETE ... LIMIT 0 sql/sql_update.cc: Fixed UPDATE ..LIMIT 0
Diffstat (limited to 'mit-pthreads')
-rw-r--r--mit-pthreads/gen/ctime.c2
-rwxr-xr-xmit-pthreads/machdep/netbsd-1.1/__signal.h7
-rw-r--r--mit-pthreads/stdio/strerror.c7
3 files changed, 14 insertions, 2 deletions
diff --git a/mit-pthreads/gen/ctime.c b/mit-pthreads/gen/ctime.c
index 0c1e711cf13..9b38d41e495 100644
--- a/mit-pthreads/gen/ctime.c
+++ b/mit-pthreads/gen/ctime.c
@@ -177,7 +177,7 @@ time_t altzone = 0;
static int detzcode(const char * codep)
{
- long result;
+ int result;
int i;
result = 0;
diff --git a/mit-pthreads/machdep/netbsd-1.1/__signal.h b/mit-pthreads/machdep/netbsd-1.1/__signal.h
index e41e9218261..ea2979f2b4e 100755
--- a/mit-pthreads/machdep/netbsd-1.1/__signal.h
+++ b/mit-pthreads/machdep/netbsd-1.1/__signal.h
@@ -1,5 +1,7 @@
#include <sys/signal.h>
+__BEGIN_DECLS
+
#if NSIG <= 32
#define __SIGEMPTYSET 0
#define __SIGFILLSET 0xffffffff
@@ -8,6 +10,9 @@
#define __SIGISMEMBER(s, n) ((*(s) & (1 << ((n) - 1))) != 0)
#else /* XXX Netbsd >= 1.3H */
+
+int sigaction __P_((int, const struct sigaction *, struct sigaction *)) __RENAME(__sigaction14);
+
#define __SIGEMPTYSET { 0, 0, 0, 0}
#define __SIGFILLSET { 0xffffffff, 0xffffffff, \
0xffffffff, 0xffffffff }
@@ -18,3 +23,5 @@
#define __SIGISMEMBER(s, n) (((s)->__bits[__SIGWORD(n)] & __SIGMASK(n)) != 0)
#endif
+
+__END_DECLS
diff --git a/mit-pthreads/stdio/strerror.c b/mit-pthreads/stdio/strerror.c
index 5aea7e7a4fc..d35235e63b0 100644
--- a/mit-pthreads/stdio/strerror.c
+++ b/mit-pthreads/stdio/strerror.c
@@ -36,13 +36,18 @@ static char sccsid[] = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
+#if defined(__NetBSD__)
+#include <errno.h>
+#endif
char *
strerror(num)
int num;
{
+#if !defined(__NetBSD__)
extern int sys_nerr;
extern char *sys_errlist[];
+#endif
#define UPREFIX "Unknown error: "
static char ebuf[40] = UPREFIX; /* 64-bit number + slop */
register unsigned int errnum;
@@ -51,7 +56,7 @@ strerror(num)
errnum = num; /* convert to unsigned */
if (errnum < sys_nerr)
- return(sys_errlist[errnum]);
+ return((char *)sys_errlist[errnum]);
/* Do this by hand, so we don't include stdio(3). */
t = tmp;