diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2023-04-06 13:41:09 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2023-04-06 13:41:09 +0100 |
| commit | 60ff21fb3139286e7a79ea73e4b9ae28d6a5524b (patch) | |
| tree | 27e6aae6f24d5ff27c1924387f00de120aacb6a9 | |
| parent | f1bf68a54506ec51bacdd27ef7eec6ac6732d629 (diff) | |
6.0.23.5923.66
| -rw-r--r-- | APRSStdPages.c | 2 | ||||
| -rw-r--r-- | BBSUtilities.c | 2 | ||||
| -rw-r--r-- | Bpq32.c | 1 | ||||
| -rw-r--r-- | CHeaders.h | 4 | ||||
| -rw-r--r-- | LinBPQ.c | 4 | ||||
| -rw-r--r-- | TNCEmulators.c | 6 | ||||
| -rw-r--r-- | Versions.h | 4 | ||||
| -rw-r--r-- | bpqchat.c | 1 | ||||
| -rw-r--r-- | compatbits.c | 25 | ||||
| -rw-r--r-- | compatbits.h | 3 | ||||
| -rw-r--r-- | debug/bpq32.pdb | bin | 1903616 -> 0 bytes | |||
| -rw-r--r-- | linether.c | 2 | ||||
| -rw-r--r-- | pngerror.c | 2 | ||||
| -rw-r--r-- | templatedefs.c | 2 |
14 files changed, 44 insertions, 14 deletions
diff --git a/APRSStdPages.c b/APRSStdPages.c index 112e8be..dc253ed 100644 --- a/APRSStdPages.c +++ b/APRSStdPages.c @@ -1,6 +1,6 @@ #include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#ifndef WIN32
diff --git a/BBSUtilities.c b/BBSUtilities.c index 4a21033..151a6e1 100644 --- a/BBSUtilities.c +++ b/BBSUtilities.c @@ -14714,7 +14714,7 @@ char * FormatSYNCMessage(CIRCUIT * conn, struct MsgInfo * Msg) sprintf_s(Date, sizeof(Date), "%04d%02d%02d%02d%02d%02d",
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
- tm = gmtime(&Msg->datecreated);
+ tm = gmtime((time_t *)&Msg->datecreated);
sprintf_s(MsgTime, sizeof(Date), "%04d/%02d/%02d %02d:%02d",
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min);
@@ -1153,6 +1153,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses // Fix TNC Emulator Monitoring (53)
// Fix attach and connect on Telnet port bug introduced in .55 (56)
// Fix stopping WinRPR TNC and Start/Stop UZ7HO TNCX on Linux (57)
+// Fix stack size in beginthread for MAC
#define CKernel
@@ -12,10 +12,6 @@ #include "asmstrucs.h"
-#ifndef WIN32
-__asm__(".symver fcntl,fcntl@GLIBC_2.4");
-#endif
-
BOOL CheckExcludeList(UCHAR * Call);
Dll int ConvFromAX25(unsigned char * incall,unsigned char * outcall);
@@ -1392,9 +1392,11 @@ void * InitializeExtDriver(PEXTPORTDATA PORTVEC) _strupr(Value);
#ifndef FREEBSD
+#ifndef MACBPQ
if (strstr(Value, "BPQETHER"))
return ETHERExtInit;
#endif
+#endif
if (strstr(Value, "BPQAXIP"))
return AXIPExtInit;
@@ -1587,6 +1589,7 @@ struct TNCINFO * TNC; #include <time.h>
#include <sys/time.h>
+#ifndef MACBPQ
#ifdef __MACH__
#include <mach/mach_time.h>
@@ -1606,6 +1609,7 @@ int clock_gettime(int clk_id, struct timespec *t){ return 0;
}
#endif
+#endif
int GetTickCount()
{
diff --git a/TNCEmulators.c b/TNCEmulators.c index a4b85c1..7ecb200 100644 --- a/TNCEmulators.c +++ b/TNCEmulators.c @@ -228,8 +228,12 @@ typedef struct _SERIAL_STATUS { #endif
+
#ifndef WIN32
-// #include <pty.h>
+
+#ifdef MACBPQ
+#include <util.h>
+#endif
extern int posix_openpt (int __oflag);
extern int grantpt (int __fd);
@@ -10,8 +10,8 @@ #endif
-#define KVers 6,0,23,58
-#define KVerstring "6.0.23.58\0"
+#define KVers 6,0,23,59
+#define KVerstring "6.0.23.59\0"
#ifdef CKernel
@@ -68,6 +68,7 @@ // Fix History (31)
// Stop buffer overflow in History
// Allow /History to be shortened to /Hi (45)
+// Fix extra r charater in Chat Config Web Page
#include "BPQChat.h"
#include "Dbghelp.h"
diff --git a/compatbits.c b/compatbits.c index ea8a913..c485a81 100644 --- a/compatbits.c +++ b/compatbits.c @@ -139,7 +139,30 @@ pthread_t _beginthread(void(*start_address)(), unsigned stack_size, VOID * argli {
pthread_t thread;
- if (pthread_create(&thread, NULL, (void * (*)(void *))start_address, (void*) arglist) != 0)
+ // Need to set stack size for Mac
+
+ int s, tnum, opt, num_threads;
+ struct thread_info *tinfo;
+ pthread_attr_t attr;
+ void *res;
+
+ s = pthread_attr_init(&attr);
+ if (s != 0)
+ {
+ perror("pthread_attr_init");
+ return 0;
+ }
+ if (stack_size > 0)
+ {
+ s = pthread_attr_setstacksize(&attr, stack_size);
+ if (s != 0)
+ {
+ perror("pthread_attr_setstacksize");
+ return 0;
+ }
+ }
+
+ if (pthread_create(&thread, &attr, (void * (*)(void *))start_address, (void*) arglist) != 0)
perror("New Thread");
else
pthread_detach(thread);
diff --git a/compatbits.h b/compatbits.h index 8c9f3c3..6441507 100644 --- a/compatbits.h +++ b/compatbits.h @@ -11,10 +11,7 @@ Stuff to make compiling on WINDOWS and LINUX easier #include <ctype.h>
#include <string.h>
#include <time.h>
-#ifndef MACBPQ
-#include <malloc.h>
#include <stdlib.h>
-#endif
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/debug/bpq32.pdb b/debug/bpq32.pdb Binary files differdeleted file mode 100644 index b9c56d4..0000000 --- a/debug/bpq32.pdb +++ /dev/null @@ -22,6 +22,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses // Normally uses a Raw socket, but that can't send to other apps on same machine.
// so can use a TAP device instead (or maybe as well??)
+#ifndef MACBPQ
#include <stdio.h>
@@ -496,3 +497,4 @@ static int ProcessLine(char * buf, int Port, BOOL CheckPort) }
+#endif
@@ -16,6 +16,8 @@ #define PNG_INTERNAL #include "png.h" +void Myabort(); + static void /* PRIVATE */ png_default_error PNGARG((png_structp png_ptr, png_const_charp error_message)); diff --git a/templatedefs.c b/templatedefs.c index a312d7f..4dba3d7 100644 --- a/templatedefs.c +++ b/templatedefs.c @@ -1437,7 +1437,7 @@ char * ChatConfigtxt() "seperared by |, eg NOTCHT:G8BPQ-4|C 3 GM8BPQ-9|CHAT"
"<br><br>The Callsign of the Chat Node is not defined here - it is obtained from the bpq32.cfg APPLICATION line corresponding to the Chat Appl Number.<br>\r\n"
- "<br></div>r\n"
+ "<br></div>\n"
" <textarea cols=\"70\" rows=\"5\" name=\"nodes\">%s</textarea><br>\r\n"
"<br>\r\n"
" Map Position <input onchange=CheckLen() maxlength=\"80\" value=\"%s\" size=\"20\" name=\"Posn\" id=pos> <br>\r\n"
|
