[52178] trunk/dports/multimedia/XviD/files/patch-src-xvid.c.diff

devans at macports.org devans at macports.org
Thu Jun 11 09:55:30 PDT 2009


Revision: 52178
          http://trac.macports.org/changeset/52178
Author:   devans at macports.org
Date:     2009-06-11 09:55:29 -0700 (Thu, 11 Jun 2009)
Log Message:
-----------
XviD: ammend patch to src/xvid.c to allow building on tiger where _SC_NPROCESSORS_CONF is not defined.

Modified Paths:
--------------
    trunk/dports/multimedia/XviD/files/patch-src-xvid.c.diff

Modified: trunk/dports/multimedia/XviD/files/patch-src-xvid.c.diff
===================================================================
--- trunk/dports/multimedia/XviD/files/patch-src-xvid.c.diff	2009-06-11 16:54:16 UTC (rev 52177)
+++ trunk/dports/multimedia/XviD/files/patch-src-xvid.c.diff	2009-06-11 16:55:29 UTC (rev 52178)
@@ -1,5 +1,5 @@
---- src/xvid.c.orig	2009-06-11 17:21:06.000000000 +0200
-+++ src/xvid.c	2009-06-11 17:21:59.000000000 +0200
+--- src/xvid.c.orig	2009-06-11 09:40:19.000000000 -0700
++++ src/xvid.c	2009-06-11 09:42:45.000000000 -0700
 @@ -27,6 +27,10 @@
  #include <stdlib.h>
  #include <string.h>
@@ -11,11 +11,16 @@
  
  #include "xvid.h"
  #include "decoder.h"
-@@ -675,7 +679,6 @@
+@@ -675,8 +679,11 @@
  
  #else
  
 -  #include <unistd.h>
++#ifndef _SC_NPROCESSORS_CONF
++  info->num_threads = 1;
++#else
    info->num_threads = sysconf(_SC_NPROCESSORS_CONF);	
++#endif
  
  #endif
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090611/6e4599c7/attachment-0001.html>


More information about the macports-changes mailing list