Group :: System/Kernel and hardware
RPM: vbetool
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: vbetool-0.4-buildfix.patch
Download
Download
diff -ur vbetool-0.4.orig/Makefile.am vbetool-0.4/Makefile.am
--- vbetool-0.4.orig/Makefile.am 2005-11-23 05:48:13 +0300
+++ vbetool-0.4/Makefile.am 2006-01-31 13:52:51 +0300
@@ -22,4 +22,5 @@
$(RM) Makefile.in aclocal.m4 config.h.in stamp-h.in configure
AM_CFLAGS = -g -Wall -pedantic -std=gnu99
-AM_LDFLAGS = -lpci
+LIBS = -Wl,-non_shared -lpci -Wl,-call_shared
+
diff -ur vbetool-0.4.orig/vbetool.c vbetool-0.4/vbetool.c
--- vbetool-0.4.orig/vbetool.c 2005-07-21 21:14:55 +0400
+++ vbetool-0.4/vbetool.c 2006-01-31 13:51:53 +0300
@@ -11,11 +11,9 @@
#include <pci/pci.h>
#include <assert.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
-#include <sys/types.h>
#include <sys/io.h>
#include <sys/kd.h>
#include <sys/stat.h>