summaryrefslogtreecommitdiff
path: root/misc/autocue
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-07-09 09:44:18 +0000
committerjperkin <jperkin>2015-07-09 09:44:18 +0000
commit5ac78cbaa4d038e4e5c98f301e4afc75c01035e2 (patch)
treee7ddef7ac068ebfff63453a7103040324d731cdc /misc/autocue
parentb32f7fe88b5327500da7904d252503fd854f5922 (diff)
downloadpkgsrc-5ac78cbaa4d038e4e5c98f301e4afc75c01035e2.tar.gz
Use nbcompat headers. Fix pid_t printing. Fixes build on at least SunOS.
Diffstat (limited to 'misc/autocue')
-rw-r--r--misc/autocue/files/autocue.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/misc/autocue/files/autocue.c b/misc/autocue/files/autocue.c
index cbb7ccbc995..9b7ea9bdf88 100644
--- a/misc/autocue/files/autocue.c
+++ b/misc/autocue/files/autocue.c
@@ -1,4 +1,4 @@
-/* $NetBSD: autocue.c,v 1.3 2007/02/24 12:16:12 agc Exp $ */
+/* $NetBSD: autocue.c,v 1.4 2015/07/09 09:44:18 jperkin Exp $ */
/*
* Copyright © 2006 Alistair Crooks. All rights reserved.
@@ -27,12 +27,18 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat.h>
+#include <nbcompat/cdefs.h>
+#else
#include <sys/cdefs.h>
+#endif
#ifndef lint
__COPYRIGHT("@(#) Copyright © 2006 \
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: autocue.c,v 1.3 2007/02/24 12:16:12 agc Exp $");
+__RCSID("$NetBSD: autocue.c,v 1.4 2015/07/09 09:44:18 jperkin Exp $");
#endif
#include <err.h>
@@ -143,7 +149,7 @@ main(int argc, char **argv)
if ((fp = fopen(argv[optind], "r")) == NULL) {
errx(EXIT_FAILURE, "can't open `%s'", argv[optind]);
}
- printf("send this process - %d - a USR1 to make the display go faster, a USR2 to make it go slower\n", getpid());
+ printf("send this process - %ld - a USR1 to make the display go faster, a USR2 to make it go slower\n", (long)getpid());
for (cc = 0 ; fgets(line, sizeof(line), fp) != NULL ; ) {
if (line[0] == '\n') {
showbuffer(buf, cc, maxcut);