pkgsrc/multimedia/libmpeg3/patches/patch-ag
2004-06-26 18:00:21 +00:00

45 lines
890 B
Text

$NetBSD: patch-ag,v 1.1 2004/06/26 18:00:21 grant Exp $
--- video/mmxtest.c.orig Tue Jul 31 19:37:07 2001
+++ video/mmxtest.c Tue Jul 31 19:41:16 2001
@@ -5,39 +5,9 @@
int mpeg3_mmx_test()
{
- int result = 0;
- FILE *proc;
- char string[MPEG3_STRLEN];
-
#ifdef HAVE_MMX
- if(!(proc = fopen(MPEG3_PROC_CPUINFO, "r")))
- {
- fprintf(stderr, "mpeg3_mmx_test: failed to open /proc/cpuinfo\n");
- return 0;
- }
-
- while(!feof(proc))
- {
- fgets(string, MPEG3_STRLEN, proc);
-/* Got the flags line */
- if(!strncasecmp(string, "flags", 5))
- {
- char *needle;
- needle = strstr(string, "mmx");
- if(!needle)
- {
- fclose(proc);
- return 0;
- }
- if(!strncasecmp(needle, "mmx", 3))
- {
- fclose(proc);
- return 1;
- }
- }
- }
- fclose(proc);
+ return (1);
#endif
return 0;