From 7ab30e4dad7b0fa78f4d7038f4b8cd37f136fd6d Mon Sep 17 00:00:00 2001
From: Fred Wright <fw@fwright.net>
Date: Fri, 15 Nov 2024 20:06:51 -0800
Subject: [PATCH] which.c: Fix buildability.

Provides a dummy definition of __FBSDID to avoid compile errors,
without deleting the ID string inherited from FreeBSD.

TESTED:
Builds now work on 10.4, including universal builds where applicable.
---
 tiger_only/src/which.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tiger_only/src/which.c b/tiger_only/src/which.c
index e8ecea2..cf05431 100644
--- a/tiger_only/src/which.c
+++ b/tiger_only/src/which.c
@@ -26,6 +26,12 @@
 
 #include <sys/cdefs.h>
 
+/* Modification from original source */
+#ifndef __FBSDID
+#define __FBSDID(x)
+#endif
+/* End of addition */
+
 __FBSDID("$FreeBSD: src/usr.bin/which/which.c,v 1.6 2005/02/10 16:04:22 ru Exp $");
 
 #include <sys/stat.h>
-- 
GitLab