Revision: 75710
http://sourceforge.net/p/brlcad/code/75710
Author: starseeker
Date: 2020-05-06 22:54:42 +0000 (Wed, 06 May 2020)
Log Message:
-----------
Apparently this functionality is deliberately not supported on OpenBSD?
Modified Paths:
--------------
brlcad/trunk/src/libbu/whereami.c
Modified: brlcad/trunk/src/libbu/whereami.c
===================================================================
--- brlcad/trunk/src/libbu/whereami.c 2020-05-06 22:37:19 UTC (rev 75709)
+++ brlcad/trunk/src/libbu/whereami.c 2020-05-06 22:54:42 UTC (rev 75710)
@@ -707,8 +707,20 @@
#else
-#error unsupported platform
+/* On OpenBSD, it apparently isn't possible to get this at all?
https://stackoverflow.com/a/38255753 */
+WAI_FUNCSPEC
+int WAI_PREFIX(getExecutablePath)(char* UNUSED(out), int UNUSED(capacity),
int* UNUSED(dirname_length))
+{
+ return -1;
+}
+
+WAI_NOINLINE WAI_FUNCSPEC
+int WAI_PREFIX(getModulePath)(char* UNUSED(out), int UNUSED(capacity), int*
UNUSED(dirname_length))
+{
+ return -1;
+}
+
#endif
#ifdef __cplusplus
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits