1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/games/xvmahjongg/files/patch-mahjongg.c
Martin Wilke 9ff9392165 - Update MASTER_SITES
- Fix build with clang
- Support PLIST_FILES
- Add MAKE_JOBS_UNSAFE

PR:		175584
Submitted by:	Ports Fury
2013-02-04 14:22:32 +00:00

29 lines
528 B
C

--- mahjongg.c.orig
+++ mahjongg.c
@@ -41,6 +41,7 @@
*/
#include <stdio.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <xview/xview.h>
@@ -1178,7 +1179,7 @@
tileptr->y_loc = y_loc;
if (tileptr->removed)
- return;
+ return(0);
if (! tileptr->top_covered)
if (Use_tile_server_images)
@@ -1245,7 +1246,7 @@
Pixrect *pr;
{
if (PIXRECT_IMAGE_DEPTH(pr) <= 1)
- return;
+ return(0);
shift_image_colors( PIXRECT_IMAGE_DATA_PTR(pr),
PIXRECT_IMAGE_SIZE(pr) );