[Bug 615357] [macosx] Handle multi-arch plugin-scanner

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Apr 11 23:02:08 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=615357
  GStreamer | gstreamer (core) | git

--- Comment #30 from Daniel Macks <dmacks at netspace.org> 2011-04-12 06:01:53 UTC ---
sysctl's interface always confuses the heck out of me, so I use uname...

#include <stdlib.h>
#include <sys/utsname.h>

int usr_bin_arch_wraps(void) {
  struct utsname data;
  int major;  // kernel major-version

  uname(&data);
  major=strtod(data.release, NULL);
  /* check for OS X >= 10.5 (darwin kernel 9.0) */
  if(major >=9) return(1);
  return(0);
}


Looks like we're both taking the same approach to kernel-version testing.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list