mirror of https://github.com/acidanthera/audk.git
Fix GCC build breaks.
Fix case mismatch for includes of "Socket.h". Original code was <socket.h> while file was Socket.h in the same directory as the .c file. Add EFIAPI to function declarations so that they match the definition. Remove "ineffective" statements from stub functions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12076 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
05f9aa4026
commit
eb222aea1d
|
@ -5,14 +5,14 @@
|
|||
All rights reserved. This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
http://opensource.org/licenses/bsd-license.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include <socket.h>
|
||||
#include "Socket.h"
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
**/
|
||||
|
||||
#include <socket.h>
|
||||
#include "Socket.h"
|
||||
|
||||
|
||||
CONST EFI_GUID mEslRawServiceGuid = {
|
||||
|
|
|
@ -112,13 +112,13 @@ typedef struct _DT_SERVICE DT_SERVICE; ///< Forward delcaration
|
|||
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(* PFN_SB_INITIALIZE) (
|
||||
(EFIAPI * PFN_SB_INITIALIZE) (
|
||||
DT_SERVICE * pService
|
||||
);
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(* PFN_SB_SHUTDOWN) (
|
||||
(EFIAPI * PFN_SB_SHUTDOWN) (
|
||||
DT_SERVICE * pService
|
||||
);
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
struct passwd *
|
||||
getpwuid (uid_t uid)
|
||||
{
|
||||
uid;
|
||||
errno = EPERM;
|
||||
return NULL;
|
||||
}
|
||||
|
@ -35,7 +34,6 @@ char *getlogin (void)
|
|||
struct passwd *
|
||||
getpwnam (const char *name)
|
||||
{
|
||||
name;
|
||||
errno = EPERM;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue