Re: [PATCH] emulate dirfd when necessary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, January 18, 2011 11:47:01 Fabian Groffen wrote:
> +AC_LINK_IFELSE([AC_LANG_PROGRAM([[
> +#include <dirent.h>
> +]],[[
> +	DIR *dir = 0;
> +	if (dirfd(dir)) ;
> +]])], [have_dirfd=yes], [have_dirfd=no])

i wonder if this should be doing "return dirfd(dir);" to try and avoid 
optimization issues

otherwise, this patch looks OK to me
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux