lkml.org 
[lkml]   [1999]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[OT] Semaphores.
Date

Running kernel 2.3.26, I get this error message when I try to compile the
program bellow.

Have I done something wrong ?????
--------------------
#> gcc foo.c -o foo
foo.c: In function `main':
foo.c:7: storage size of `semopts' isn't known
--------------------

#include <sys/types.h>
#include <sys/sem.h>
#include <sys/ipc.h>

void main(){

union semun semopts;

}
--------------------
Cheers Mof.

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