$OpenBSD: patch-solenv_bin_mapgen_pl,v 1.2 2009/01/22 17:44:39 robert Exp $
--- solenv/bin/mapgen.pl.orig.port	Fri Aug  1 07:34:38 2008
+++ solenv/bin/mapgen.pl	Thu Jan 15 14:47:50 2009
@@ -139,7 +139,8 @@ sub filter_symbols {
 		$env_section = '1' and next if ((/^# SOLARIS #$/) && ($ENV{OS} eq 'SOLARIS'));
 		$env_section = '1' and next if ((/^# LINUX #$/) && ($ENV{OS} eq 'LINUX'));
 		$env_section = '1' and next if ((/^# FREEBSD #$/) && ($ENV{OS} eq 'FREEBSD'));
-		last if ($env_section && ((/^# SOLARIS #$/) || (/^# FREEBSD #$/) || (/^# LINUX #$/)));
+		$env_section = '1' and next if ((/^# OPENBSD #$/) && ($ENV{OS} eq 'OPENBSD'));
+		last if ($env_section && ((/^# SOLARIS #$/) || (/^# FREEBSD #$/) || (/^# OPENBSD #$/) || (/^# LINUX #$/)));
 		next if (!$_ || /^#/);
 		push(@filters, $_);
 	};
