Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37832340
en ru br
ALT Linux repos
S:0.2.0-alt2

Group :: System/Configuration/Printing
RPM: ml85p

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ml85p-0.2.0-build_fix.patch
Download


--- ml85p-0.2.0.orig/ml85p.c	2002-03-11 22:21:51.000000000 -0300
+++ ml85p-0.2.0/ml85p.c	2007-08-16 15:23:21.000000000 -0300
@@ -7,12 +7,19 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
-#include <asm/io.h>
-#include <asm/system.h>
+#include <sys/io.h>
 #include <time.h>
 #include "ml85p.h"
 
+/* 
+ * not sure if this works
+ */
+#define __cli() __asm__ __volatile__("cli": : :"memory")
+#define __sti() __asm__ __volatile__("sti": : :"memory")
+
 int cmd_seq[] = { 
 0x80, 1, 0xa0, 1, 0x00, 0, 0xa0, 1, -2, 
 0x89, 1, 0x8a, 1, 0xa6, 1, 0x07, 0, 0xa7, 1, 0x8b, 1, 0x8b, 1, -2,
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin