Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games/quaqut: fix build with -fno-common
Move the definition of a global structure from header to source file. This unbreaks the build on FreeBSD 13+. While we are at it, regenerate patch and set LICENSE.
- Loading branch information
1 parent
cb7e0ef
commit 8459032
Showing
5 changed files
with
39 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- src/display.c.orig 2004-09-28 12:49:58 UTC | ||
+++ src/display.c | ||
@@ -122,7 +122,9 @@ int quaqut_display_process( int protocol , char comman | ||
|
||
if ( quaqut.options & QUAQUT_OPTION_LOGFILE ) | ||
fclose(destination); | ||
- | ||
+ else | ||
+ fflush(stdout); | ||
+ | ||
return 1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/network.c.orig 2023-04-13 09:01:58 UTC | ||
+++ src/network.c | ||
@@ -22,6 +22,8 @@ | ||
#include "quaqut.h" | ||
#include "protocol.h" | ||
|
||
+struct quaqut quaqut; | ||
+ | ||
#ifdef _WIN_32_ | ||
void quaqut_network_initwsa( void ); | ||
void quaqut_network_shutwsa( void ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/quaqut.h.orig 2023-04-13 09:01:23 UTC | ||
+++ src/quaqut.h | ||
@@ -114,7 +114,7 @@ int quaqut_utils_bufferize4bytes( unsigned char* , uns | ||
int quaqut_utils_bufferizestring( unsigned char* , unsigned char* , int ); | ||
|
||
|
||
-struct { | ||
+extern struct quaqut { | ||
|
||
char command; | ||
unsigned int options; |