File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ get_cpu_name (void)
175175 file = popen ("/usr/sbin/system_profiler -detailLevel full SPHardwareDataType" , "r" ) ;
176176 search = "Processor Name" ;
177177 is_pipe = 1 ;
178- #elif defined (__FreeBSD__ )
178+ #elif defined (__FreeBSD__ ) || defined ( __OpenBSD__ )
179179 file = popen ("sysctl -a" , "r" ) ;
180180 search = "hw.model" ;
181181 is_pipe = 1 ;
@@ -188,7 +188,7 @@ get_cpu_name (void)
188188 return name ;
189189#endif
190190
191- #if defined (__linux__ ) || defined (__APPLE__ ) || defined (__FreeBSD__ )
191+ #if defined (__linux__ ) || defined (__APPLE__ ) || defined (__FreeBSD__ ) || defined ( __OpenBSD__ )
192192 if (search == NULL )
193193 { printf ("Error : search is NULL in function %s.\n" , __func__ ) ;
194194 return name ;
You can’t perform that action at this time.
0 commit comments