Skip to content


Subversion checkout URL

You can clone with
Download ZIP


missing header: unistd.h for usleep() #925

1 commit merged into from

3 participants


No description provided.


on compiling master without the commit:

CPP     xbmc/cores/dvdplayer/DVDFileInfo.o
CPP     xbmc/cores/dvdplayer/DVDMessage.o
CPP     xbmc/cores/dvdplayer/DVDMessageQueue.o
CPP     xbmc/cores/dvdplayer/DVDMessageTracker.o
CPP     xbmc/cores/dvdplayer/DVDOverlayContainer.o
CPP     xbmc/cores/dvdplayer/DVDOverlayRenderer.o
CPP     xbmc/cores/dvdplayer/DVDPerformanceCounter.o
CPP     xbmc/cores/dvdplayer/DVDPlayer.o
CPP     xbmc/cores/dvdplayer/DVDPlayerAudio.o
In file included from /xbmc/xbmc/threads/platform/ThreadImpl.h:25:0,
                 from /xbmc/xbmc/threads/ThreadImpl.h:24,
                 from /xbmc/xbmc/threads/Thread.h:31,
                 from DVDPlayerAudio.h:23,
                 from DVDPlayerAudio.cpp:23:
/xbmc/xbmc/threads/platform/pthreads/ThreadImpl.h: In member function »void XbmcThreads::ThreadSleep(unsigned int)«:
/xbmc/xbmc/threads/platform/pthreads/ThreadImpl.h:37:75: error: »usleep« was not declared in this scope
make[1]: *** [DVDPlayerAudio.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDPlayer.a] Error 2

I get this error too if unistd.h is missing.


whether it works or not for some is irrelevant. the fix is correct.

@ghost ghost merged commit 7047173 into xbmc:master

I just wanted to understand why. You're right, I should have committed this and then asked.

@LongChair LongChair referenced this pull request from a commit in plexinc/plex-home-theater-public
@LongChair LongChair Fix [Skin] Preferences top level browsing is confused #925 d188a08
@LongChair LongChair referenced this pull request from a commit in RasPlex/plex-home-theatre
@LongChair LongChair Fix [Skin] Preferences top level browsing is confused #925 e57fa6a
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 3, 2012
  1. @drmonty
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  xbmc/threads/platform/pthreads/ThreadImpl.h
1  xbmc/threads/platform/pthreads/ThreadImpl.h
@@ -22,6 +22,7 @@
#pragma once
#include <pthread.h>
+#include <unistd.h>
struct threadOpaque
Something went wrong with that request. Please try again.