pkgsrc-Bugs archive

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

Re: pkg/48435: glib-2.38.x doesn't build on Solaris 10



The following reply was made to PR pkg/48435; it has been noted by GNATS.

From: Uwe Klaus <uklaus%hgb-leipzig.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/48435: glib-2.38.x doesn't build on Solaris 10
Date: Mon, 9 Dec 2013 12:57:41 +0100 (CET)

 On Mon, 9 Dec 2013, Thomas Klausner wrote:
 
 > >  #ifdef AT_FDCWD
 > > -#ifdef OPEN_O_DIRECTORY
 > > -      dir_fd = openat (parent_fd, name->data, O_RDONLY|O_DIRECTORY);
 >
 > This looks like a typo -- isn't changing that to
 > #idef O_DIRECTORY
 > a simpler fix?
 sorry, did diff in the wrong direction.
 
 @@ -2699,7 +2699,11 @@ g_local_file_measure_size_of_file (gint 
 parent_fd,
           return FALSE;
 
   #ifdef AT_FDCWD
 -      dir_fd = openat (parent_fd, name->data, O_RDONLY | O_DIRECTORY);
 +#ifdef OPEN_O_DIRECTORY
 +      dir_fd = openat (parent_fd, name->data, O_RDONLY|O_DIRECTORY);
 +#else
 +      dir_fd = openat (parent_fd, name->data, O_RDONLY);
 +#endif
         if (dir_fd < 0)
           return g_local_file_measure_size_error (state->flags, errno, 
 name, error);
   #endif
 


Home | Main Index | Thread Index | Old Index