[Mesa-dev] [PATCH v2 01/26] util: move os_time.[ch] to src/util

Nicolai Hähnle nhaehnle at gmail.com
Fri Nov 10 15:41:39 UTC 2017


On 10.11.2017 13:35, Jon Turney wrote:
> On 06/11/2017 10:23, Nicolai Hähnle wrote:
>> diff --git a/src/gallium/auxiliary/os/os_time.h b/src/util/os_time.h
>> similarity index 89%
>> rename from src/gallium/auxiliary/os/os_time.h
>> rename to src/util/os_time.h
>> index ca0bdd5a0c4..049ab118db2 100644
>> --- a/src/gallium/auxiliary/os/os_time.h
>> +++ b/src/util/os_time.h
>> @@ -28,34 +28,29 @@
>>   /**
>>    * @file
>>    * OS independent time-manipulation functions.
>>    *
>>    * @author Jose Fonseca <jfonseca at vmware.com>
>>    */
>>   #ifndef _OS_TIME_H_
>>   #define _OS_TIME_H_
>> -
>> -#include "pipe/p_config.h"
>> -
>> -#if defined(PIPE_OS_UNIX)
>> -#  include <unistd.h> /* usleep */
>> -#endif
>> -
>> -#include "pipe/p_compiler.h"
>> -
>> +#include <stdbool.h>
>> +#include <stdint.h>
>>   #ifdef __cplusplus
>>   extern "C" {
>>   #endif
> 
> This patch seems to drop the include of unistd.h, which may be needed 
> for usleep() prototype.
> 
> (See http://dronecode.duckdns.org:8010/builders/mesa-mesa/builds/5790)
> 
> Patch attached.

Thanks! Patch is:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

Do you need me to push it for you?

-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list