linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bonganilinux@mweb.co.za
To: Hossein Mobahi <hmobahi@yahoo.com>,
	linux-kernel@vger.kernel.org,
	linux-c-programming@vger.kernel.org
Subject: Re: problem with <asm/semaphore.h>
Date: Tue, 4 Jun 2002 11:41:01 GMT	[thread overview]
Message-ID: <E17FCaW-0002V9-00@rammstein.mweb.co.za> (raw)

I think you a trying to include a file from the linux source
which will not work for use-space apps. Try using 
#include <semaphore.h> instead 


> Hi
> 
> I compiled the following code with gcc under Redhat
> 7.2 :
> 
> #include <asm/semaphore.h>
> main()
> {
>     struct semaphore sum;
> }
> 
> It doesn't compile, saying "storage size of `sem'
> isn't known".
> Please guide me how to fix it.
> 
> Sincerely
> 
> --Hossein Mobahi
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


---------------------------------------------
This message was sent using M-Web Airmail.
JUST LIKE THAT
Are you ready for 10-digit dialling on the 8th of May?
To find out how this will affect your Internet connection go to www.mweb.co.za/ten
http://airmail.mweb.co.za/



             reply	other threads:[~2002-06-04 11:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-04 11:41 bonganilinux [this message]
2002-06-04 11:44 ` problem with <asm/semaphore.h> Thomas 'Dent' Mirlacher
  -- strict thread matches above, loose matches on Subject: below --
2002-06-04 11:19 Hossein Mobahi
2002-06-04 11:44 ` Shanks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E17FCaW-0002V9-00@rammstein.mweb.co.za \
    --to=bonganilinux@mweb.co.za \
    --cc=hmobahi@yahoo.com \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).