Changeset c6f1eb05 in mainline for uspace/lib/c/generic/dlfcn.c


Ignore:
Timestamp:
2012-10-20T20:13:10Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
849bebe4
Parents:
7d248e3
Message:

Make dlfcn functions available even when dynamic linking is not supported/enabled.

File:
1 edited

Legend:

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

    r7d248e3 rc6f1eb05  
    3838#include <stdlib.h>
    3939#include <dlfcn.h>
     40
     41#ifdef CONFIG_RTLD
    4042
    4143#include <rtld/module.h>
     
    8789}
    8890
     91#else /* CONFIG_RTLD not defined */
     92
     93void *dlopen(const char *path, int flag)
     94{
     95        return NULL;
     96}
     97
     98void *dlsym(void *mod, const char *sym_name)
     99{
     100        return NULL;
     101}
     102
     103#endif
     104
    89105/** @}
    90106 */
Note: See TracChangeset for help on using the changeset viewer.