mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Fix build with clang.
This commit is contained in:
parent
1155c67d88
commit
bbce779c7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365114
12
x11/xbelld/files/patch-xbell.c
Normal file
12
x11/xbelld/files/patch-xbell.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- xbell.c.orig 2002-10-26 20:26:48.000000000 -0400
|
||||
+++ xbell.c 2014-08-16 14:05:35.000000000 -0400
|
||||
@@ -38,8 +38,7 @@
|
||||
#include <sysexits.h>
|
||||
|
||||
#ifndef lint
|
||||
-static const char rcsid[] =
|
||||
- "$Id: xbell.c,v 1.1 2002/10/27 00:26:48 sethk Exp $";
|
||||
+__RCSID("$Id: xbell.c,v 1.1 2002/10/27 00:26:48 sethk Exp $");
|
||||
#endif /* !lint */
|
||||
|
||||
int
|
@ -1,9 +1,16 @@
|
||||
--- xbelld.c.orig 2002-10-26 20:28:36.000000000 -0400
|
||||
+++ xbelld.c 2014-08-16 14:07:14.000000000 -0400
|
||||
@@ -60,8 +60,7 @@
|
||||
#include <dirent.h>
|
||||
|
||||
$FreeBSD$
|
||||
#ifndef lint
|
||||
-static const char rcsid[] =
|
||||
- "$Id: xbelld.c,v 1.7 2002/10/27 00:28:36 sethk Exp $";
|
||||
+__RCSID("$Id: xbelld.c,v 1.7 2002/10/27 00:28:36 sethk Exp $");
|
||||
#endif /* !lint */
|
||||
|
||||
--- xbelld.c.orig
|
||||
+++ xbelld.c
|
||||
@@ -268,7 +268,7 @@
|
||||
#define XskRFilename "XskRFilename"
|
||||
@@ -268,7 +267,7 @@
|
||||
u_int i;
|
||||
|
||||
if (!hp->h_size)
|
||||
@ -12,7 +19,7 @@ $FreeBSD$
|
||||
i = hp->h_hash(data) % hp->h_size;
|
||||
if (!TAILQ_EMPTY(&(hp->h_buckets[i])))
|
||||
{
|
||||
@@ -914,7 +914,7 @@
|
||||
@@ -914,7 +913,7 @@
|
||||
close(dfd);
|
||||
for (nent = 0, dep = (struct dirent *)dbuf;
|
||||
(char *)dep - dbuf < nb;
|
||||
@ -21,7 +28,7 @@ $FreeBSD$
|
||||
;
|
||||
_hash_resize(&(_bd.bd_sndhash), nent * 2);
|
||||
if (_bd.bd_defsnd)
|
||||
@@ -924,7 +924,7 @@
|
||||
@@ -924,7 +923,7 @@
|
||||
}
|
||||
for (dep = (struct dirent *)dbuf;
|
||||
(char *)dep - dbuf < nb;
|
||||
|
Loading…
Reference in New Issue
Block a user