Quantcast
Channel: Programm – wolf-u.li
Viewing all articles
Browse latest Browse all 19

Fehler während Kompilierung von screen-4.0.3 unter uclibc: sched.h:26: error: redefinition of ’struct event‘

$
0
0

Während der Kompilierung von screen habe ich den folgenden Fehler bekommen:

In file included from screen.h:41,
from screen.c:81:
sched.h:26: error: redefinition of 'struct event'
make: *** [screen.o] Error 1

Der folgende Patch behebt das ganze:

diff -urN screen-4.0.3-orig/sched.h screen-4.0.3/sched.h
--- screen-4.0.3-orig/sched.h	2002-01-08 16:42:43.000000000 +0100
+++ screen-4.0.3/sched.h	2009-01-13 14:53:15.000000000 +0100
@@ -22,6 +22,10 @@
  * $Id: sched.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU
  */
 
+#ifndef _SCHED_H_
+#define _SCHED_H_ 1
+#include <sys/types.h>
+
 struct event
 {
   struct event *next;
@@ -41,3 +45,4 @@
 #define EV_READ		1
 #define EV_WRITE	2
 #define EV_ALWAYS	3
+#endif

Dieser Patch kann mit „patch -p1 “ im screen-source-Verzeichnis eingebaut werden.


Related posts:


© 2005-2014 by Uli Wolf - This Content is distributed under the Creative Commons License
This feed is for personal, non-commercial use only.
The use of this feed on other websites without attribution to the author and notification of the author breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint: d2a576b5311479d89eff39b7ca886f6b)

Viewing all articles
Browse latest Browse all 19

Latest Images

Trending Articles





Latest Images