diff --git a/Makefile.am b/Makefile.am index 6b0812b6aa..b1378c0348 100644 --- a/Makefile.am +++ b/Makefile.am @@ -302,6 +302,8 @@ shared_nm_utils_libnm_utils_base_la_SOURCES = \ shared/nm-utils/nm-dedup-multi.h \ shared/nm-utils/nm-enum-utils.c \ shared/nm-utils/nm-enum-utils.h \ + shared/nm-utils/nm-errno.c \ + shared/nm-utils/nm-errno.h \ shared/nm-utils/nm-glib.h \ shared/nm-utils/nm-hash-utils.c \ shared/nm-utils/nm-hash-utils.h \ diff --git a/shared/meson.build b/shared/meson.build index 2ebef2460b..753c6fb25f 100644 --- a/shared/meson.build +++ b/shared/meson.build @@ -87,6 +87,7 @@ shared_files_libnm_core = files(''' nm-utils/c-list-util.c nm-utils/nm-dedup-multi.c nm-utils/nm-enum-utils.c + nm-utils/nm-errno.c nm-utils/nm-hash-utils.c nm-utils/nm-io-utils.c nm-utils/nm-random-utils.c diff --git a/shared/nm-utils/nm-errno.c b/shared/nm-utils/nm-errno.c new file mode 100644 index 0000000000..f44dbf06fe --- /dev/null +++ b/shared/nm-utils/nm-errno.c @@ -0,0 +1,25 @@ +/* NetworkManager -- Network link manager + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * Copyright 2018 Red Hat, Inc. + */ + +#include "nm-default.h" + +#include "nm-errno.h" + +/*****************************************************************************/ diff --git a/shared/nm-utils/nm-errno.h b/shared/nm-utils/nm-errno.h new file mode 100644 index 0000000000..2f35e10c77 --- /dev/null +++ b/shared/nm-utils/nm-errno.h @@ -0,0 +1,26 @@ +/* NetworkManager -- Network link manager + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * Copyright 2018 Red Hat, Inc. + */ + +#ifndef __NM_ERRNO_H__ +#define __NM_ERRNO_H__ + +#include + +#endif /* __NM_ERRNO_H__ */