diff --git a/APRSStdPages.c b/APRSStdPages.c index 112e8be..dc253ed 100644 --- a/APRSStdPages.c +++ b/APRSStdPages.c @@ -1,6 +1,6 @@ #include -#include +#include #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); diff --git a/Bpq32.c b/Bpq32.c index 73e29d3..5625325 100644 --- a/Bpq32.c +++ b/Bpq32.c @@ -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 diff --git a/CHeaders.h b/CHeaders.h index 3885192..38b4746 100644 --- a/CHeaders.h +++ b/CHeaders.h @@ -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); diff --git a/LinBPQ.c b/LinBPQ.c index 8c1e940..0ea99b0 100644 --- a/LinBPQ.c +++ b/LinBPQ.c @@ -1392,8 +1392,10 @@ 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 #include +#ifndef MACBPQ #ifdef __MACH__ #include @@ -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 + +#ifdef MACBPQ +#include +#endif extern int posix_openpt (int __oflag); extern int grantpt (int __fd); diff --git a/Versions.h b/Versions.h index 14d05be..9dee428 100644 --- a/Versions.h +++ b/Versions.h @@ -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 diff --git a/bpqchat.c b/bpqchat.c index a090d38..04e350d 100644 --- a/bpqchat.c +++ b/bpqchat.c @@ -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 #include #include -#ifndef MACBPQ -#include #include -#endif #include #include diff --git a/debug/bpq32.pdb b/debug/bpq32.pdb deleted file mode 100644 index b9c56d4..0000000 Binary files a/debug/bpq32.pdb and /dev/null differ diff --git a/linether.c b/linether.c index 7bc84e5..f156917 100644 --- a/linether.c +++ b/linether.c @@ -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 @@ -496,3 +497,4 @@ static int ProcessLine(char * buf, int Port, BOOL CheckPort) } +#endif diff --git a/pngerror.c b/pngerror.c index 6fa4012..f184f2b 100644 --- a/pngerror.c +++ b/pngerror.c @@ -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" "

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.
\r\n" - "
r\n" + "
\n" " 
\r\n" "
\r\n" " Map Position
\r\n"