Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    r47b7006 r8a1fb09  
    4141 */
    4242
    43 #include <stdio.h>
    44 #include <unistd.h>
     43#include <libc.h>
    4544#include <stdlib.h>
    46 #include <malloc.h>
    4745#include <tls.h>
    4846#include <fibril.h>
     
    5452#include "private/malloc.h"
    5553#include "private/io.h"
     54
     55#ifdef CONFIG_RTLD
     56#include <rtld/rtld.h>
     57#endif
    5658
    5759static bool env_setup = false;
     
    7981        char **argv;
    8082       
     83#ifdef __IN_SHARED_LIBC__
     84        if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
     85                runtime_env = (runtime_env_t *) __pcb->rtld_runtime;
     86        }
     87#endif
    8188        /*
    8289         * Get command line arguments and initialize
Note: See TracChangeset for help on using the changeset viewer.