$NetBSD: patch-mozilla_toolkit_xre_glxtest.cpp,v 1.1 2018/12/16 08:29:48 ryoon Exp $

--- mozilla/toolkit/xre/glxtest.cpp.orig	2016-04-07 21:33:34.000000000 +0000
+++ mozilla/toolkit/xre/glxtest.cpp
@@ -163,7 +163,7 @@ void glxtest()
     fatal_error("The MOZ_AVOID_OPENGL_ALTOGETHER environment variable is defined");
 
   ///// Open libGL and load needed symbols /////
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__NetBSD__)
   #define LIBGL_FILENAME "libGL.so"
 #else
   #define LIBGL_FILENAME "libGL.so.1"
