lkml.org 
[lkml]   [1996]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: ___strtok undeclared...problem
Date
Tomas Andersson (f91-tan@nada.kth.se) wrote:
> It shows that <linux/string.h> includes <asm/string.h> so I change
> #include <asm/string.h> to #include <linux/string.h> in "ps.c" and
> in the other source files that includes <asm/string.h>. However, this
> only postpones the problem to linking when ___strtok isn't found.
> I which library should (is) ___strtok be defined?

I think its a problem with older Compilers not sure). Youcan fix it, if u
include <string.h> instead of <asm/string.h>. I guess this is a little bit
slower, but it works for me...

I had to change -lncurses to -lcurses in the Makefile, rename linux/string.h
to string.h in free.c,ps.c and w.c. And remove the strdup
declaration in ps.c

Greetings
Bernd
--
(OO) -- Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de --
( .. ) ecki@lina.{inka.de,ka.sub.org} http://home.pages.de/~eckes/
o--o *plush* 2048/93600EFD eckes@irc +4972573817 *plush*
(O____O) If privacy is outlawed only Outlaws have privacy


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