$OpenBSD: patch-glib_tests_option-argv0_c,v 1.1 2012/02/02 07:10:18 ajacoutot Exp $

From e43a98c00091f5e293d2d9d72df2c04081802abe Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@gnome.org>
Date: Mon, 30 Jan 2012 15:17:06 +0000
Subject: goption: implement platform_get_argv0() for OpenBSD

--- glib/tests/option-argv0.c.orig	Mon Jan 30 10:16:25 2012
+++ glib/tests/option-argv0.c	Mon Jan 30 10:17:27 2012
@@ -27,7 +27,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#ifdef __linux
+#if defined __linux || defined __OpenBSD__
 static void
 test_platform_argv0 (void)
 {
@@ -55,7 +55,7 @@ main (int   argc,
   /* Note - we can't actually use g_test_* because g_test_init mutates
    * g_get_prgname() which is exactly what we wanted to test =/
    */
-#ifdef __linux
+#if defined __linux || defined __OpenBSD__
   g_print ("/option/argv0: ");
   test_platform_argv0 ();
   g_print ("OK\n");
