lkml.org 
[lkml]   [1999]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
SubjectRe: Linux 2.2.10ac11
> 
> I had the same problems, but couldn't fix them
> myselfe... ;(
> when I tried to compile FreeTDS ODBC drivers....
>
> any patches would be welcomed...
>
> thnx
> Michael

OK, I've rewritten the patch this morning. So I
put here one patch to apply to raw 2.2.10 and another
one for 2.2.10-ac11, and possibly other versions. Just
check that the "#if" statement is placed before
SOCK_STREAM in asm-i386/socket.h. Please be careful
on raw 2.2.10, since I was surprized to see that my
2.2.10 didn't know about SOCK_STREAM nor anything else
:-/

It's only for the i386 arch. Not applied to any other
one which differ and I don't know what other archs use
libc5.

I hope the patchs won't be broken in this mail, from
where I am I can only use yahoo to send :-(

Have fun,
Willy

---

1) patch for raw 2.2.10

--- linux-vanilla-2.2.10/include/asm-i386/socket.h Mon Dec 22 02:41:24
1997
+++ linux-dev-2.2.10/include/asm-i386/socket.h Tue Jul 20 09:16:10 1999
@@ -39,4 +39,18 @@
#define SO_ATTACH_FILTER 26
#define SO_DETACH_FILTER 27

+#if defined(__KERNEL__) || !defined(__GLIBC__) || __GLIBC__ < 2
+/* Socket types. */
+#define SOCK_STREAM 1 /* stream (connection) socket */
+#define SOCK_DGRAM 2 /* datagram (conn.less) socket */
+#define SOCK_RAW 3 /* raw socket */
+#define SOCK_RDM 4 /* reliably-delivered message */
+#define SOCK_SEQPACKET 5 /* sequential packet socket */
+#define SOCK_PACKET 10 /* linux specific way of */
+ /* getting packets at the dev */
+ /* level. For writing rarp and */
+ /* other similar things on the */
+ /* user level. */
+#endif
+
#endif /* _ASM_SOCKET_H */


2) patch for 2.2.10-ac11


--- linux-2.2.10-ac11/include/asm-i386/socket.h Tue Jul 20 09:17:16
1999
+++ linux-dev-2.2.10/include/asm-i386/socket.h Tue Jul 20 09:16:10 1999
@@ -39,7 +39,7 @@
#define SO_ATTACH_FILTER 26
#define SO_DETACH_FILTER 27

-#ifdef __KERNEL__
+#if defined(__KERNEL__) || !defined(__GLIBC__) || __GLIBC__ < 2
/* Socket types. */
#define SOCK_STREAM 1 /* stream (connection) socket */
#define SOCK_DGRAM 2 /* datagram (conn.less) socket */

3) trivial program to test it.

#include <sys/socket.h>
main() {
printf("__GLIBC__=%d\nSOCK_DGRAM=%d\n",__GLIBC__,SOCK_DGRAM);
}

___________________________________________________________
Do You Yahoo!?
Votre e-mail @yahoo.fr gratuit sur http://courrier.yahoo.fr

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.052 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site