1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix build with clang.

This commit is contained in:
Adam Weinberger 2014-08-16 18:10:14 +00:00
parent 1155c67d88
commit bbce779c7c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365114
2 changed files with 27 additions and 8 deletions

View 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

View File

@ -1,9 +1,16 @@
--- xbelld.c.orig 2002-10-26 20:28:36.000000000 -0400
$FreeBSD$ +++ xbelld.c 2014-08-16 14:07:14.000000000 -0400
@@ -60,8 +60,7 @@
--- xbelld.c.orig #include <dirent.h>
+++ xbelld.c
@@ -268,7 +268,7 @@ #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 */
#define XskRFilename "XskRFilename"
@@ -268,7 +267,7 @@
u_int i; u_int i;
if (!hp->h_size) if (!hp->h_size)
@ -12,7 +19,7 @@ $FreeBSD$
i = hp->h_hash(data) % hp->h_size; i = hp->h_hash(data) % hp->h_size;
if (!TAILQ_EMPTY(&(hp->h_buckets[i]))) if (!TAILQ_EMPTY(&(hp->h_buckets[i])))
{ {
@@ -914,7 +914,7 @@ @@ -914,7 +913,7 @@
close(dfd); close(dfd);
for (nent = 0, dep = (struct dirent *)dbuf; for (nent = 0, dep = (struct dirent *)dbuf;
(char *)dep - dbuf < nb; (char *)dep - dbuf < nb;
@ -21,7 +28,7 @@ $FreeBSD$
; ;
_hash_resize(&(_bd.bd_sndhash), nent * 2); _hash_resize(&(_bd.bd_sndhash), nent * 2);
if (_bd.bd_defsnd) if (_bd.bd_defsnd)
@@ -924,7 +924,7 @@ @@ -924,7 +923,7 @@
} }
for (dep = (struct dirent *)dbuf; for (dep = (struct dirent *)dbuf;
(char *)dep - dbuf < nb; (char *)dep - dbuf < nb;