lkml.org 
[lkml]   [1996]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCompiling libc-5.4.10/11 w. 2.1.7 header files breaks network
I was having difficulty getting libc to work when compiled w. 2.1.7 headers
whereas the 2.0.24 header files worked fine. The symptoms were - all network
daemons refusing to start after booting w. newly compiled libc.
The following patch fixes this (very minor) problem.

A kernel guru should evaluate this as there may be a reason why linux/in.h
was changed which I am unaware of.

Cheers,
Mike


*** in.h.org Sat Nov 9 07:42:06 1996
--- in.h Sat Nov 9 07:42:37 1996
***************
*** 115,124 ****
#define INADDR_ALLHOSTS_GROUP 0xe0000001 /* 224.0.0.1 */
#define INADDR_MAX_LOCAL_GROUP 0xe00000ff /* 224.0.0.255 */

- #ifdef __KERNEL__
/* <asm/byteorder.h> contains the htonl type stuff.. */
#include <asm/byteorder.h>

/* Some random defines to make it easier in the kernel.. */
#define LOOPBACK(x) (((x) & htonl(0xff000000)) == htonl(0x7f000000))
--- 115,124 ----
#define INADDR_ALLHOSTS_GROUP 0xe0000001 /* 224.0.0.1 */
#define INADDR_MAX_LOCAL_GROUP 0xe00000ff /* 224.0.0.255 */

/* <asm/byteorder.h> contains the htonl type stuff.. */
#include <asm/byteorder.h>
+
+ #ifdef __KERNEL__

/* Some random defines to make it easier in the kernel.. */
#define LOOPBACK(x) (((x) & htonl(0xff000000)) == htonl(0x7f000000))
*** ipc.h.org Sat Nov 9 08:31:25 1996
--- ipc.h Sat Nov 9 08:31:10 1996
***************
*** 2,7 ****
--- 2,8 ----
#define _LINUX_IPC_H

#include <linux/types.h>
+ #include <asm/ipc.h>

#define IPC_PRIVATE ((__kernel_key_t) 0)



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