lkml.org 
[lkml]   [1999]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.2.10-ac - SOCK_foo
Hi Alan,

Went to compile sendmail today on 2.2.10-ac9, which tried to reference
SOCK_*, and barfed finding none. The SOCK_* were moved to asm/socket.h
from their original linux/socket.h, but now have the added "feature" of
having "#ifdef __KERNEL__" wrapped around them. As a hack, I put:

#ifndef __KERNEL__
#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 */
#endif

... near the end of linux/socket.h, which has now made compiling
network apps happier. Maybe this only affects libc5 people? :-)

Kris

-
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:52    [W:0.153 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site