surpport seeking the recorded video
[vuplus_openembedded] / recipes / glibc / glibc-2.3.2 / sparc64-fixups.patch
1 --- glibc-2.2.3/elf/ldconfig.c~ Tue Mar 20 11:44:35 2001
2 +++ glibc-2.2.3/elf/ldconfig.c  Tue Apr 24 18:14:05 2001
3 @@ -287,6 +287,26 @@
4      dir_entries = entry;
5    else if (ptr == NULL)
6      prev->next = entry;
7 +#ifdef __sparc__
8 +#define MSUBDIR "64"
9 +  if (ptr == NULL) {
10 +    int si = strlen(entry->path) - strlen(MSUBDIR);
11 +    if (strcmp (entry->path + (si <= 0 ? 0 : si), MSUBDIR) != 0) {
12 +      /* Handle subdirectory later.  */
13 +      struct dir_entry *new_entry;
14 +
15 +      new_entry = xmalloc (sizeof (struct dir_entry));
16 +      new_entry->path = xmalloc(strlen(entry->path)+strlen(MSUBDIR)+1);
17 +      new_entry->flag = entry->flag;
18 +      new_entry->next = NULL;
19 +      sprintf(new_entry->path, "%s%s", entry->path, MSUBDIR);
20 +      if (opt_verbose)
21 +        printf("Adding implicit multilib directory:\n\t%s\n", new_entry->path);
22 +      add_single_dir (new_entry, 0);
23 +    }
24 +  }
25 +#undef MSUBDIR
26 +#endif
27  }
28  
29  /* Add one directory to the list of directories to process.  */