[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#1620: Compilation error in 1.1.2pre for target hppa1.1-hp-hpux10.20
From:       Stefan.Becker () nmp ! nokia ! com
Date:       1999-07-28 6:42:49
[Download RAW message or body]

Package: kbiff
Version: 1.1.2pre

HP-UX does not include the declaration for h_errno, thus the compilation
fails. Don't ask me why it's flagged in the standard HP-UX include files
:-)

The following patch fixes the problem for now. But I would suggest that
in the future there should be a configure check for h_errno.

--------------------------- CUT HERE ---------------------------------
--- kdenetwork/kbiff/kbiffmonitor.cpp~  Fri Jun  4 04:25:09 1999
+++ kdenetwork/kbiff/kbiffmonitor.cpp   Tue Jul 27 12:08:39 1999
@@ -35,6 +35,10 @@
 
 #define MAXSTR (1024)
 
+#if defined (_HPUX_SOURCE)
+extern int h_errno;
+#endif
+
 static bool real_from(const char *buffer);
 static const char *compare_header(const char *header, const char
*field);
 
--------------------------- CUT HERE ---------------------------------

Regards,

	Stefan

---
Stefan Becker
E-Mail: Stefan.Becker@nmp.nokia.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic